diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-12 04:30:09 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-12 04:30:09 +0000 |
commit | f76acb2d9d421ff705be6fd2713b8cc2c007e1df (patch) | |
tree | 9fe17e06724737f1a6579cf1a889a1222885412f /scripts | |
parent | a765e882ebf89969e81335a6df4fddb23d27095f (diff) | |
download | brdo-f76acb2d9d421ff705be6fd2713b8cc2c007e1df.tar.gz brdo-f76acb2d9d421ff705be6fd2713b8cc2c007e1df.tar.bz2 |
#282405 by Damien Tournoud, lilou, Dave Reid: Enforce coding standard on elseif.
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; |