]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix some of "Closing brace must be on a line by itself"
authorBart Visscher <bartv@thisnet.nl>
Fri, 14 Dec 2012 22:22:46 +0000 (23:22 +0100)
committerBart Visscher <bartv@thisnet.nl>
Fri, 14 Dec 2012 23:43:46 +0000 (00:43 +0100)
apps/files_versions/templates/history.php
lib/files.php
lib/templatelayout.php

index 854d032da625541e28211366d876ba8b644cd282..cc5a494f19ed0f8cad273880f91a29104fd124d4 100644 (file)
@@ -23,7 +23,9 @@ if( isset( $_['message'] ) ) {
                echo ' ';
                echo OCP\Util::formatDate( doubleval($v['version']) );
                echo ' <a href="'.OCP\Util::linkTo('files_versions', 'history.php', array('path' => $_['path'], 'revert' => $v['version'])) .'" class="button">Revert</a><br /><br />';
-               if ( $v['cur'] ) { echo '  (<b>Current</b>)'; }
+               if ( $v['cur'] ) {
+                       echo '  (<b>Current</b>)';
+               }
                echo '<br /><br />';
        }
 
index b4a4145a4939c03e7e6fa2e7346528f18d1d5431..152ed8f34a7471bfc3015222c7df60cd5940cf7b 100644 (file)
@@ -492,7 +492,9 @@ class OC_Files {
                if(is_writable(OC::$SERVERROOT.'/.htaccess')) {
                        file_put_contents(OC::$SERVERROOT.'/.htaccess', $htaccess);
                        return OC_Helper::computerFileSize($size);
-               } else { OC_Log::write('files', 'Can\'t write upload limit to '.OC::$SERVERROOT.'/.htaccess. Please check the file permissions', OC_Log::WARN); }
+               } else {
+                       OC_Log::write('files', 'Can\'t write upload limit to '.OC::$SERVERROOT.'/.htaccess. Please check the file permissions', OC_Log::WARN);
+               }
 
                return false;
        }
index 87b5620932cc8bc3ff5861042ffc05a400469305..4173e008ba75754572be366478cb72309a490707 100644 (file)
@@ -130,8 +130,14 @@ class OC_TemplateLayout extends OC_Template {
                                // or in apps?
                                foreach( OC::$APPSROOTS as $apps_dir)
                                {
-                                       if(self::appendIfExist($files, $apps_dir['path'], $apps_dir['url'], "$style$fext.css")) { $append =true; break; }
-                                       elseif(self::appendIfExist($files, $apps_dir['path'], $apps_dir['url'], "$style.css")) { $append =true; break; }
+                                       if(self::appendIfExist($files, $apps_dir['path'], $apps_dir['url'], "$style$fext.css")) {
+                                               $append = true;
+                                               break;
+                                       }
+                                       elseif(self::appendIfExist($files, $apps_dir['path'], $apps_dir['url'], "$style.css")) {
+                                               $append = true;
+                                               break;
+                                       }
                                }
                                if(! $append) {
                                        echo('css file not found: style:'.$style.' formfactor:'.$fext.' webroot:'.OC::$WEBROOT.' serverroot:'.OC::$SERVERROOT);
@@ -192,8 +198,14 @@ class OC_TemplateLayout extends OC_Template {
                                // Is it part of an app?
                                $append = false;
                                foreach( OC::$APPSROOTS as $apps_dir) {
-                                       if(self::appendIfExist($files, $apps_dir['path'], OC::$WEBROOT.$apps_dir['url'], "$script$fext.js")) { $append =true; break; }
-                                       elseif(self::appendIfExist($files, $apps_dir['path'], OC::$WEBROOT.$apps_dir['url'], "$script.js")) { $append =true; break; }
+                                       if(self::appendIfExist($files, $apps_dir['path'], OC::$WEBROOT.$apps_dir['url'], "$script$fext.js")) {
+                                               $append = true;
+                                               break;
+                                       }
+                                       elseif(self::appendIfExist($files, $apps_dir['path'], OC::$WEBROOT.$apps_dir['url'], "$script.js")) {
+                                               $append = true;
+                                               break;
+                                       }
                                }
                                if(! $append) {
                                        echo('js file not found: script:'.$script.' formfactor:'.$fext.' webroot:'.OC::$WEBROOT.' serverroot:'.OC::$SERVERROOT);