]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update settings/apps.php
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 4 Sep 2012 09:14:09 +0000 (12:14 +0300)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 4 Sep 2012 09:14:09 +0000 (12:14 +0300)
respect coding style

settings/apps.php

index 7e21973805fa156e0d1d2475000f3a3afc3e813b..3524f65d6acf71dd85b9b5aa4be897bdbaf6a6d4 100644 (file)
@@ -21,7 +21,7 @@
 *
 */
 
-require_once('../lib/base.php');
+require_once '../lib/base.php';
 OC_Util::checkAdminUser();
 
 // Load the files we need
@@ -35,11 +35,11 @@ $apps=array();
 //TODO which apps do we want to blacklist and how do we integrate blacklisting with the multi apps folder feature
 $blacklist=array('files');//we dont want to show configuration for these
 
-foreach($registeredApps as $app){
-       if(array_search($app,$blacklist)===false){
+foreach($registeredApps as $app) {
+       if(array_search($app, $blacklist)===false) {
                $info=OC_App::getAppInfo($app);
                if (!isset($info['name'])) {
-                       OC_Log::write('core','App id "'.$app.'" has no name in appinfo',OC_Log::ERROR);
+                       OC_Log::write('core', 'App id "'.$app.'" has no name in appinfo', OC_Log::ERROR);
                        continue;
                }
                $active=(OC_Appconfig::getValue($app,'enabled','no')=='yes')?true:false;
@@ -58,7 +58,7 @@ foreach($registeredApps as $app){
 }
 
 function app_sort($a, $b){
-       if ($a['active'] != $b['active']){
+       if ($a['active'] != $b['active']) {
                return $b['active'] - $a['active'];
        }
        return strcmp($a['name'], $b['name']);
@@ -66,8 +66,8 @@ function app_sort($a, $b){
 usort($apps, 'app_sort');
 
 $tmpl = new OC_Template( "settings", "apps", "user" );
-$tmpl->assign('apps',$apps, false);
+$tmpl->assign('apps', $apps, false);
 $appid = (isset($_GET['appid'])?strip_tags($_GET['appid']):'');
-$tmpl->assign('appid',$appid);
+$tmpl->assign('appid', $appid);
 
 $tmpl->printPage();