]> source.dussan.org Git - nextcloud-server.git/commitdiff
apply coding style
authorThomas Mueller <thomas.mueller@tmit.eu>
Tue, 28 Aug 2012 23:38:34 +0000 (01:38 +0200)
committerThomas Mueller <thomas.mueller@tmit.eu>
Tue, 28 Aug 2012 23:39:42 +0000 (01:39 +0200)
apps/files/ajax/newfile.php
apps/files/ajax/scan.php

index b572a766dac62794b0f930c3a26e957fb5deda9a..6ae9c445425e6dad8459d592d47811065f287c57 100644 (file)
@@ -25,7 +25,7 @@ if($filename == '') {
        OCP\JSON::error(array("data" => array( "message" => "Empty Filename" )));
        exit();
 }
-if(strpos($filename,'/')!==false) {
+if(strpos($filename, '/')!==false) {
        OCP\JSON::error(array("data" => array( "message" => "Invalid Filename" )));
        exit();
 }
@@ -55,7 +55,7 @@ function progress($notification_code, $severity, $message, $message_code, $bytes
        }
 }
 
-if($source){
+if($source) {
        if(substr($source, 0, 8)!='https://' and substr($source, 0, 7)!='http://') {
                OCP\JSON::error(array("data" => array( "message" => "Not a valid source" )));
                exit();
index e38484b97dd475ee974e2c5b8249e3c5ef95df61..23d7da44f8deba33b5b66a943b79134d52df58ef 100644 (file)
@@ -36,7 +36,7 @@ if($force or !OC_FileCache::inCache('')) {
                exit;
        }
        if(isset($eventSource)) {
-               $eventSource->send('success',false);
+               $eventSource->send('success', false);
        } else {
                exit;
        }