diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/drupal.sh | 2 | ||||
-rwxr-xr-x | scripts/run-tests.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/drupal.sh b/scripts/drupal.sh index e94d9e9ca..a3f258459 100755 --- a/scripts/drupal.sh +++ b/scripts/drupal.sh @@ -118,7 +118,7 @@ while ($param = array_shift($_SERVER['argv'])) { $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = $path['path']; $cmd = substr($path['path'], 1); } - else if (isset($path['path'])) { + elseif (isset($path['path'])) { if (!isset($_GET['q'])) { $_REQUEST['q'] = $_GET['q'] = $path['path']; } diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index 785ce3ce4..3266db3ad 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -212,7 +212,7 @@ function simpletest_script_parse_args() { simpletest_script_print_error("--concurrency must be a strictly positive integer."); exit; } - else if ($args['concurrency'] > 1 && !function_exists('pcntl_fork')) { + elseif ($args['concurrency'] > 1 && !function_exists('pcntl_fork')) { simpletest_script_print_error("Parallel test execution requires the Process Control extension to be compiled in PHP. Please see http://php.net/manual/en/intro.pcntl.php for more information."); exit; } @@ -386,7 +386,7 @@ function simpletest_script_get_test_list() { } } } - else if ($args['file']) { + elseif ($args['file']) { $files = array(); foreach ($args['test_names'] as $file) { $files[realpath($file)] = 1; |