]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
changed curly bracks on if, else, foreach to match pear code styles
authorBrenda Wallace <shiny@cpan.org>
Sun, 13 Sep 2009 05:43:48 +0000 (17:43 +1200)
committerBrenda Wallace <shiny@cpan.org>
Mon, 14 Sep 2009 07:00:30 +0000 (19:00 +1200)
install.php

index 5754c717a17b45693c7a0a3e3ccf32bcee67f6fc..75646c8526cded7882df1ddf11b0909396342d22 100644 (file)
@@ -203,14 +203,13 @@ $dbModules = array(
 
 function main()
 {
-    if (!checkPrereqs())
-    {
+    if (!checkPrereqs()) {
         return;
     }
     
-    if( $_GET['checklibs'] ){
+    if ($_GET['checklibs']) {
         showLibs();
-    }else{
+    } else {
         if ($_SERVER['REQUEST_METHOD'] == 'POST') {
             handlePost();
         } else {
@@ -221,13 +220,13 @@ function main()
 
 function haveExternalLibrary($external_library)
 {
-    if(isset($external_library['include']) && ! include_once($external_library['include'])){
+    if (isset($external_library['include']) && ! include_once $external_library['include'] ) {
         return false;
     }
-    if(isset($external_library['check_function']) && ! function_exists($external_library['check_function'])){
+    if (isset($external_library['check_function']) && ! function_exists($external_library['check_function'])) {
         return false;
     }
-    if(isset($external_library['check_class']) && ! class_exists($external_library['check_class'])){
+    if (isset($external_library['check_class']) && ! class_exists($external_library['check_class'])) {
         return false;
     }
     return true;
@@ -309,10 +308,10 @@ function showLibs()
     global $external_libraries;
     $present_libraries=array();
     $absent_libraries=array();
-    foreach($external_libraries as $external_library){
-        if(haveExternalLibrary($external_library)){
+    foreach ($external_libraries as $external_library){
+        if (haveExternalLibrary($external_library)) {
             $present_libraries[]=$external_library;
-        }else{
+        } else {
             $absent_libraries[]=$external_library;
         }
     }