Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug #19908 : PEAR MultiLineCondition Does Not Apply elseif

  • Loading branch information...
commit 39fd453cafb068eb6b7862872d55b27330928b2d 1 parent c9a25a0
@gsherwood gsherwood authored
View
5 CodeSniffer/Standards/PEAR/Sniffs/ControlStructures/MultiLineConditionSniff.php
@@ -36,7 +36,10 @@ class PEAR_Sniffs_ControlStructures_MultiLineConditionSniff implements PHP_CodeS
*/
public function register()
{
- return array(T_IF);
+ return array(
+ T_IF,
+ T_ELSEIF,
+ );
}//end register()
View
2  CodeSniffer/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.inc
@@ -84,7 +84,7 @@ if ($condition1
|| $condition2
|| $condition3
) {
-} else if (
+} elseif (
$condition1
|| $condition2 &&
$condition3
View
1  package.xml
@@ -36,6 +36,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- Generic CallTimePassByReferenceSniff now reports errors for functions called using a variable
-- Thanks to Maik Penz for the patch
- Fixed bug #19892 : ELSE with no braces causes incorrect SWITCH break statement indentation error
+ - Fixed bug #19908 : PEAR MultiLineCondition Does Not Apply elseif
</notes>
<contents>
<dir name="/">
Please sign in to comment.
Something went wrong with that request. Please try again.