summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-12-14 23:38:38 +0100
committerBart Visscher <bartv@thisnet.nl>2012-12-15 00:43:46 +0100
commit2ef2dc4ddabc8b5d86d7a9a5a936ecf3901615cc (patch)
treecab9483141ee8fee237abfdf9550117c1e98296f /lib
parent85bd28c5081e7c2fea236c4528c23be283aa7350 (diff)
downloadnextcloud-server-2ef2dc4ddabc8b5d86d7a9a5a936ecf3901615cc.tar.gz
nextcloud-server-2ef2dc4ddabc8b5d86d7a9a5a936ecf3901615cc.zip
Fix "There must be a single space between the closing parenthesis and the opening brace"
Diffstat (limited to 'lib')
-rw-r--r--lib/filecache.php6
-rwxr-xr-xlib/request.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index bbf55bc1f86..c3256c783e6 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -355,7 +355,7 @@ class OC_FileCache{
if($sizeDiff==0) return;
$item = OC_FileCache_Cached::get($path);
//stop walking up the filetree if we hit a non-folder or reached to root folder
- if($path == '/' || $path=='' || $item['mimetype'] !== 'httpd/unix-directory'){
+ if($path == '/' || $path=='' || $item['mimetype'] !== 'httpd/unix-directory') {
return;
}
$id = $item['id'];
@@ -363,13 +363,13 @@ class OC_FileCache{
$query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `size`=`size`+? WHERE `id`=?');
$query->execute(array($sizeDiff, $id));
$path=dirname($path);
- if($path == '' or $path =='/'){
+ if($path == '' or $path =='/') {
return;
}
$parent = OC_FileCache_Cached::get($path);
$id = $parent['id'];
//stop walking up the filetree if we hit a non-folder
- if($parent['mimetype'] !== 'httpd/unix-directory'){
+ if($parent['mimetype'] !== 'httpd/unix-directory') {
return;
}
}
diff --git a/lib/request.php b/lib/request.php
index 782ed26a415..99a77e1b59e 100755
--- a/lib/request.php
+++ b/lib/request.php
@@ -18,7 +18,7 @@ class OC_Request {
if(OC::$CLI) {
return 'localhost';
}
- if(OC_Config::getValue('overwritehost', '')<>''){
+ if(OC_Config::getValue('overwritehost', '')<>'') {
return OC_Config::getValue('overwritehost');
}
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
@@ -43,7 +43,7 @@ class OC_Request {
* Returns the server protocol. It respects reverse proxy servers and load balancers
*/
public static function serverProtocol() {
- if(OC_Config::getValue('overwriteprotocol', '')<>''){
+ if(OC_Config::getValue('overwriteprotocol', '')<>'') {
return OC_Config::getValue('overwriteprotocol');
}
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) {