Skip to content
Snippets Groups Projects
Commit b64229a8 authored by Thomas Müller's avatar Thomas Müller
Browse files

apply coding style

parent 4c4aa92e
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -36,7 +36,7 @@ if($force or !OC_FileCache::inCache('')) {
exit;
}
if(isset($eventSource)) {
$eventSource->send('success',false);
$eventSource->send('success', false);
} else {
exit;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment