diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-09-13 17:43:48 +1200 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-09-14 19:00:30 +1200 |
commit | 711fe39700e868ad2cea595b109d2958752d4aa6 (patch) | |
tree | 32e098f0827a94551687abe087f24c21db320771 | |
parent | 222ef4d1869485426e893f85caf8a3014f814faa (diff) |
changed curly bracks on if, else, foreach to match pear code styles
-rw-r--r-- | install.php | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/install.php b/install.php index 5754c717a..75646c852 100644 --- a/install.php +++ b/install.php @@ -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; } } |