changed curly bracks on if, else, foreach to match pear code styles
This commit is contained in:
parent
222ef4d186
commit
711fe39700
19
install.php
19
install.php
|
@ -203,14 +203,13 @@ $dbModules = array(
|
||||||
|
|
||||||
function main()
|
function main()
|
||||||
{
|
{
|
||||||
if (!checkPrereqs())
|
if (!checkPrereqs()) {
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( $_GET['checklibs'] ){
|
if ($_GET['checklibs']) {
|
||||||
showLibs();
|
showLibs();
|
||||||
}else{
|
} else {
|
||||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
handlePost();
|
handlePost();
|
||||||
} else {
|
} else {
|
||||||
|
@ -221,13 +220,13 @@ function main()
|
||||||
|
|
||||||
function haveExternalLibrary($external_library)
|
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;
|
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;
|
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 false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -309,10 +308,10 @@ function showLibs()
|
||||||
global $external_libraries;
|
global $external_libraries;
|
||||||
$present_libraries=array();
|
$present_libraries=array();
|
||||||
$absent_libraries=array();
|
$absent_libraries=array();
|
||||||
foreach($external_libraries as $external_library){
|
foreach ($external_libraries as $external_library){
|
||||||
if(haveExternalLibrary($external_library)){
|
if (haveExternalLibrary($external_library)) {
|
||||||
$present_libraries[]=$external_library;
|
$present_libraries[]=$external_library;
|
||||||
}else{
|
} else {
|
||||||
$absent_libraries[]=$external_library;
|
$absent_libraries[]=$external_library;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user