]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correct a first issue Checkstyle is complaining about ...
authorFelix Moeller <mail@felixmoeller.de>
Mon, 22 Oct 2012 19:40:33 +0000 (21:40 +0200)
committerFelix Moeller <mail@felixmoeller.de>
Mon, 22 Oct 2012 19:40:33 +0000 (21:40 +0200)
This is BracketsNotRequired

apps/files_external/lib/config.php
lib/filesystem.php
lib/helper.php
lib/installer.php
lib/l10n.php
lib/migrate.php
lib/template.php
lib/util.php

index 068475783cda9833ad3763e489f3a293a7eb1f57..9dc3cdd71479aa361c4fe0dc828c1a0b3fc905f3 100755 (executable)
@@ -231,7 +231,7 @@ class OC_Mount_Config {
                        $file = OC::$SERVERROOT.'/config/mount.php';
                }
                if (is_file($file)) {
-                       $mountPoints = include($file);
+                       $mountPoints = include $file;
                        if (is_array($mountPoints)) {
                                return $mountPoints;
                        }
index 00682573dd9e8694d32aa53f0d7626e2d69b3e2c..09ccf9de4df1d9fb46705f073df10822d45b9768 100644 (file)
@@ -210,7 +210,7 @@ class OC_Filesystem{
 
        static private function loadSystemMountPoints($user) {
                if(is_file(OC::$SERVERROOT.'/config/mount.php')) {\r
-                       $mountConfig=include(OC::$SERVERROOT.'/config/mount.php');\r
+                       $mountConfig=include OC::$SERVERROOT.'/config/mount.php';\r
                        if(isset($mountConfig['global'])) {\r
                                foreach($mountConfig['global'] as $mountPoint=>$options) {\r
                                        self::mount($options['class'],$options['options'],$mountPoint);\r
index a52adc969588f3269d6abbf9987d49d8635f330d..37a17885eee42dce61363fd112af99345a7b486b 100644 (file)
@@ -350,8 +350,8 @@ class OC_Helper {
 
                if(strpos($path,'.')) {
                        //try to guess the type by the file extension
-                       if(!self::$mimetypes || self::$mimetypes != include('mimetypes.list.php')) {
-                               self::$mimetypes=include('mimetypes.list.php');
+                       if(!self::$mimetypes || self::$mimetypes != include 'mimetypes.list.php') {
+                               self::$mimetypes=include 'mimetypes.list.php';
                        }
                        $extension=strtolower(strrchr(basename($path), "."));
                        $extension=substr($extension,1);//remove leading .
index 9135c60fc056c7e4ace2c1be648f3897f33243e7..56e474bb3b30961dff96ee86b860112b05322eed 100644 (file)
@@ -187,7 +187,7 @@ class OC_Installer{
 
                //run appinfo/install.php
                if((!isset($data['noinstall']) or $data['noinstall']==false) and file_exists($basedir.'/appinfo/install.php')) {
-                       include($basedir.'/appinfo/install.php');
+                       include $basedir.'/appinfo/install.php';
                }
 
                //set the installed version
@@ -320,7 +320,7 @@ class OC_Installer{
 
                //run appinfo/install.php
                if(is_file(OC_App::getAppPath($app)."/appinfo/install.php")) {
-                       include(OC_App::getAppPath($app)."/appinfo/install.php");
+                       include OC_App::getAppPath($app)."/appinfo/install.php";
                }
                $info=OC_App::getAppInfo($app);
                OC_Appconfig::setValue($app,'installed_version',OC_App::getAppVersion($app));
index 6667747b885bd0f30479c4b6995deb64528e08a8..41c89a7d4b58aedee8f76d153623a44c8292cd96 100644 (file)
@@ -120,7 +120,7 @@ class OC_L10N{
                                OC_Helper::issubdirectory($i18ndir.$lang.'.php', OC::$SERVERROOT.'/lib/l10n/') ||
                                OC_Helper::issubdirectory($i18ndir.$lang.'.php', OC::$SERVERROOT.'/settings')) && file_exists($i18ndir.$lang.'.php')) {
                                // Include the file, save the data from $CONFIG
-                               include(strip_tags($i18ndir).strip_tags($lang).'.php');
+                               include strip_tags($i18ndir).strip_tags($lang).'.php';
                                if(isset($TRANSLATIONS) && is_array($TRANSLATIONS)) {
                                        $this->translations = $TRANSLATIONS;
                                }
@@ -128,7 +128,7 @@ class OC_L10N{
 
                        if(file_exists(OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php')) {
                                // Include the file, save the data from $CONFIG
-                               include(OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php');
+                               include OC::$SERVERROOT.'/core/l10n/l10n-'.$lang.'.php';
                                if(isset($LOCALIZATIONS) && is_array($LOCALIZATIONS)) {
                                        $this->localizations = array_merge($this->localizations, $LOCALIZATIONS);
                                }
index 611a935ee5d9be9137ee02094db361034041b08b..3694ea877a0d38bcfbed6a189e27002c65eef328 100644 (file)
@@ -66,7 +66,7 @@ class OC_Migrate{
                foreach($apps as $app) {
                        $path = OC_App::getAppPath($app) . '/appinfo/migrate.php';
                        if( file_exists( $path ) ) {
-                               include( $path );
+                               include $path;
                        }
                }
        }
index 1c529932a3018904313e843644f172d50d5c57c7..972d75807c7a8ffcb3c9e0e07ba1d8cc95c7ca47 100644 (file)
@@ -405,7 +405,7 @@ class OC_Template{
 
                // Execute the template
                ob_start();
-               include( $this->template ); // <-- we have to use include because we pass $_!
+               include $this->template; // <-- we have to use include because we pass $_!
                $data = ob_get_contents();
                @ob_end_clean();
 
@@ -430,7 +430,7 @@ class OC_Template{
 
                // Include
                ob_start();
-               include( $this->path.$file.'.php' );
+               include $this->path.$file.'.php';
                $data = ob_get_contents();
                @ob_end_clean();
 
index c5f41be324b8f0aaf9088eb436ce1b8ba1f47d54..0a824f86eb3628bc34a94c4954f006563f91376f 100755 (executable)
@@ -68,7 +68,7 @@ class OC_Util {
                $user_root = OC_User::getHome($user);\r
                $userdirectory = $user_root . '/files';
                if (is_file($user_root.'/mount.php')) {\r
-                       $mountConfig = include($user_root.'/mount.php');\r
+                       $mountConfig = include $user_root.'/mount.php';\r
                        if (isset($mountConfig['user'][$user])) {\r
                                foreach ($mountConfig['user'][$user] as $mountPoint => $options) {\r
                                        OC_Filesystem::mount($options['class'], $options['options'], $mountPoint);\r