summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-23 23:48:27 -0700
committerLukas Reschke <lukas@statuscode.ch>2012-10-23 23:48:27 -0700
commita7eb56c799499a76fdc49c1a1dc971bb6dfea72e (patch)
tree9c9eaa76a78f86b5f1b59f432d056a1cf459c39e /lib
parentf33af71eb017fda5ea7e95270b92f1bca8835bbc (diff)
parent36d0d7590134f5587ab09c67927c3187e8b5c790 (diff)
downloadnextcloud-server-a7eb56c799499a76fdc49c1a1dc971bb6dfea72e.tar.gz
nextcloud-server-a7eb56c799499a76fdc49c1a1dc971bb6dfea72e.zip
Merge pull request #76 from fmms/master
checkstyle: some more cleanups
Diffstat (limited to 'lib')
-rwxr-xr-xlib/app.php7
-rw-r--r--lib/ocsclient.php6
2 files changed, 5 insertions, 8 deletions
diff --git a/lib/app.php b/lib/app.php
index cb68ea3ddde..28757735e04 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -549,17 +549,14 @@ class OC_App{
foreach ( OC::$APPSROOTS as $apps_dir ) {
if(! is_readable($apps_dir['path'])) {
- OC_Log::write('core', 'unable to read app folder : ' .$apps_dir['path'] , OC_Log::WARN);
+ OC_Log::write('core', 'unable to read app folder : ' .$apps_dir['path'], OC_Log::WARN);
continue;
}
$dh = opendir( $apps_dir['path'] );
while( $file = readdir( $dh ) ) {
- if (
- $file[0] != '.'
- and is_file($apps_dir['path'].'/'.$file.'/appinfo/app.php' )
- ) {
+ if ($file[0] != '.' and is_file($apps_dir['path'].'/'.$file.'/appinfo/app.php')) {
$apps[] = $file;
diff --git a/lib/ocsclient.php b/lib/ocsclient.php
index 4d4937377b3..32c2cfe6e48 100644
--- a/lib/ocsclient.php
+++ b/lib/ocsclient.php
@@ -80,7 +80,7 @@ class OC_OCSClient{
}
$url=OC_OCSClient::getAppStoreURL().'/content/categories';
$xml=OC_OCSClient::getOCSresponse($url);
- if($xml==FALSE) {
+ if($xml==false) {
return null;
}
$data=simplexml_load_string($xml);
@@ -122,8 +122,8 @@ class OC_OCSClient{
$apps=array();
$xml=OC_OCSClient::getOCSresponse($url);
- if($xml==FALSE) {
- return NULL;
+ if($xml==false) {
+ return null;
}
$data=simplexml_load_string($xml);