summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-08-29 01:38:34 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-08-29 01:39:42 +0200
commitb64229a89e638e761264a45ed79fe2bc6b2f9262 (patch)
tree261a060fde08c960eae14111218ad74294d3b858
parent4c4aa92eef858a2a96bb5676304acbcaafaa56f2 (diff)
downloadnextcloud-server-b64229a89e638e761264a45ed79fe2bc6b2f9262.tar.gz
nextcloud-server-b64229a89e638e761264a45ed79fe2bc6b2f9262.zip
apply coding style
-rw-r--r--apps/files/ajax/newfile.php4
-rw-r--r--apps/files/ajax/scan.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php
index b572a766dac..6ae9c445425 100644
--- a/apps/files/ajax/newfile.php
+++ b/apps/files/ajax/newfile.php
@@ -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();
diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php
index e38484b97dd..23d7da44f8d 100644
--- a/apps/files/ajax/scan.php
+++ b/apps/files/ajax/scan.php
@@ -36,7 +36,7 @@ if($force or !OC_FileCache::inCache('')) {
exit;
}
if(isset($eventSource)) {
- $eventSource->send('success',false);
+ $eventSource->send('success', false);
} else {
exit;
}