From f76acb2d9d421ff705be6fd2713b8cc2c007e1df Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 12 Oct 2008 04:30:09 +0000 Subject: #282405 by Damien Tournoud, lilou, Dave Reid: Enforce coding standard on elseif. --- modules/simpletest/drupal_web_test_case.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/simpletest') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 2198dde22..35042ad2c 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -1486,7 +1486,7 @@ class DrupalWebTestCase { // Input element with correct value. $found = TRUE; } - else if (isset($field->option)) { + elseif (isset($field->option)) { // Select element found. if ($this->getSelectedItem($field) == $value) { $found = TRUE; @@ -1499,7 +1499,7 @@ class DrupalWebTestCase { } } } - else if (isset($field[0]) && $field[0] == $value) { + elseif (isset($field[0]) && $field[0] == $value) { // Text area with correct text. $found = TRUE; } @@ -1522,7 +1522,7 @@ class DrupalWebTestCase { if (isset($item['selected'])) { return $item['value']; } - else if ($item->getName() == 'optgroup') { + elseif ($item->getName() == 'optgroup') { if ($value = $this->getSelectedItem($item)) { return $value; } -- cgit v1.2.3