@@ -59,7 +59,7 @@ |
||
| 59 | 59 | 34 => 1, |
| 60 | 60 | 37 => 1, |
| 61 | 61 | 41 => 1, |
| 62 | - ); |
|
| 62 | + ); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | return null; |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @return array(int => int) |
| 46 | 46 | */ |
| 47 | - protected function getErrorList($testFile='') |
|
| 47 | + protected function getErrorList($testFile = '') |
|
| 48 | 48 | { |
| 49 | 49 | switch ($testFile) { |
| 50 | 50 | case 'PropertyCommentUnitTest.pass.inc': |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | 9 => 1, |
| 61 | 61 | 10 => 1, |
| 62 | 62 | 11 => 1, |
| 63 | - ); |
|
| 63 | + ); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | return null; |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @return array(int => int) |
| 46 | 46 | */ |
| 47 | - protected function getErrorList($testFile='') |
|
| 47 | + protected function getErrorList($testFile = '') |
|
| 48 | 48 | { |
| 49 | 49 | switch ($testFile) { |
| 50 | 50 | case 'VariableInDoubleQuotedStringUnitTest.pass.inc': |
@@ -57,20 +57,20 @@ discard block |
||
| 57 | 57 | 8 => 1, |
| 58 | 58 | 9 => 1, |
| 59 | 59 | 12 => 1, |
| 60 | - ); |
|
| 60 | + ); |
|
| 61 | 61 | // Take care, more than one fix will be applied. |
| 62 | 62 | case 'AlphabeticalUseStatementsUnitTest.fail.2.inc': |
| 63 | 63 | return array( |
| 64 | 64 | 6 => 1, |
| 65 | 65 | 8 => 1, |
| 66 | - ); |
|
| 66 | + ); |
|
| 67 | 67 | case 'AlphabeticalUseStatementsUnitTest.fail.3.inc': |
| 68 | 68 | return array( |
| 69 | 69 | 7 => 1, |
| 70 | 70 | 8 => 1, |
| 71 | 71 | 10 => 1, |
| 72 | 72 | 15 => 1, |
| 73 | - ); |
|
| 73 | + ); |
|
| 74 | 74 | case 'AlphabeticalUseStatementsUnitTest.fail.4.inc': |
| 75 | 75 | return array( |
| 76 | 76 | 4 => 1, |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | 17 => 1, |
| 80 | 80 | 20 => 1, |
| 81 | 81 | 21 => 1, |
| 82 | - ); |
|
| 82 | + ); |
|
| 83 | 83 | }//end switch |
| 84 | 84 | |
| 85 | 85 | return null; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * |
| 46 | 46 | * @return array(int => int) |
| 47 | 47 | */ |
| 48 | - protected function getErrorList($testFile='') |
|
| 48 | + protected function getErrorList($testFile = '') |
|
| 49 | 49 | { |
| 50 | 50 | switch ($testFile) { |
| 51 | 51 | case 'AlphabeticalUseStatementsUnitTest.pass.inc': |
@@ -88,12 +88,12 @@ discard block |
||
| 88 | 88 | 46 => 1, |
| 89 | 89 | 52 => 1, |
| 90 | 90 | 56 => 1, |
| 91 | - ); |
|
| 91 | + ); |
|
| 92 | 92 | case 'UnnecessaryNamespaceUsageUnitTest.fail.2.inc': |
| 93 | 93 | return array( |
| 94 | 94 | 10 => 1, |
| 95 | 95 | 11 => 1, |
| 96 | - ); |
|
| 96 | + ); |
|
| 97 | 97 | case 'UnnecessaryNamespaceUsageUnitTest.fail.3.inc': |
| 98 | 98 | return array( |
| 99 | 99 | 15 => 1, |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | 22 => 1, |
| 104 | 104 | 23 => 1, |
| 105 | 105 | 25 => 3, |
| 106 | - ); |
|
| 106 | + ); |
|
| 107 | 107 | }//end switch |
| 108 | 108 | |
| 109 | 109 | return null; |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @return array(int => int) |
| 48 | 48 | */ |
| 49 | - protected function getErrorList($testFile='') |
|
| 49 | + protected function getErrorList($testFile = '') |
|
| 50 | 50 | { |
| 51 | 51 | return array(); |
| 52 | 52 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @return array(int => int) |
| 65 | 65 | */ |
| 66 | - protected function getWarningList($testFile='') |
|
| 66 | + protected function getWarningList($testFile = '') |
|
| 67 | 67 | { |
| 68 | 68 | switch ($testFile) { |
| 69 | 69 | case 'UnnecessaryNamespaceUsageUnitTest.pass.1.inc': |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | 13 => 1, |
| 60 | 60 | 15 => 1, |
| 61 | 61 | 16 => 2, |
| 62 | - ); |
|
| 62 | + ); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | return null; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * |
| 46 | 46 | * @return array(int => int) |
| 47 | 47 | */ |
| 48 | - protected function getErrorList($testFile='') |
|
| 48 | + protected function getErrorList($testFile = '') |
|
| 49 | 49 | { |
| 50 | 50 | switch ($testFile) { |
| 51 | 51 | case 'UseArrayShortTagUnitTest.pass.inc': |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | 145 => 1, |
| 84 | 84 | 151 => 2, |
| 85 | 85 | 155 => 1, |
| 86 | - ); |
|
| 86 | + ); |
|
| 87 | 87 | }//end switch |
| 88 | 88 | |
| 89 | 89 | return null; |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @return array(int => int) |
| 46 | 46 | */ |
| 47 | - protected function getErrorList($testFile='') |
|
| 47 | + protected function getErrorList($testFile = '') |
|
| 48 | 48 | { |
| 49 | 49 | switch ($testFile) { |
| 50 | 50 | case 'ArrayAlignmentUnitTest.pass.inc': |
@@ -46,8 +46,8 @@ discard block |
||
| 46 | 46 | * @var array |
| 47 | 47 | */ |
| 48 | 48 | private $myTokenTypes = array( |
| 49 | - T_VARIABLE, |
|
| 50 | - T_CONST, |
|
| 49 | + T_VARIABLE, |
|
| 50 | + T_CONST, |
|
| 51 | 51 | ); |
| 52 | 52 | |
| 53 | 53 | |
@@ -82,14 +82,14 @@ discard block |
||
| 82 | 82 | $currScope |
| 83 | 83 | ) { |
| 84 | 84 | $find = array( |
| 85 | - T_COMMENT, |
|
| 86 | - T_DOC_COMMENT_CLOSE_TAG, |
|
| 87 | - T_CLASS, |
|
| 88 | - T_CONST, |
|
| 89 | - T_FUNCTION, |
|
| 90 | - T_VARIABLE, |
|
| 91 | - T_OPEN_TAG, |
|
| 92 | - ); |
|
| 85 | + T_COMMENT, |
|
| 86 | + T_DOC_COMMENT_CLOSE_TAG, |
|
| 87 | + T_CLASS, |
|
| 88 | + T_CONST, |
|
| 89 | + T_FUNCTION, |
|
| 90 | + T_VARIABLE, |
|
| 91 | + T_OPEN_TAG, |
|
| 92 | + ); |
|
| 93 | 93 | $tokens = $phpcsFile->getTokens(); |
| 94 | 94 | |
| 95 | 95 | // Before even checking the docblocks above the current var/const, |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | $stackPtr, |
| 82 | 82 | $currScope |
| 83 | 83 | ) { |
| 84 | - $find = array( |
|
| 84 | + $find = array( |
|
| 85 | 85 | T_COMMENT, |
| 86 | 86 | T_DOC_COMMENT_CLOSE_TAG, |
| 87 | 87 | T_CLASS, |
@@ -58,11 +58,11 @@ discard block |
||
| 58 | 58 | * @var array |
| 59 | 59 | */ |
| 60 | 60 | private $supportedOrderingMethods = [ |
| 61 | - 'dictionary', |
|
| 62 | - 'string', |
|
| 63 | - 'string', |
|
| 64 | - 'string-locale', |
|
| 65 | - 'string-case-insensitive', |
|
| 61 | + 'dictionary', |
|
| 62 | + 'string', |
|
| 63 | + 'string', |
|
| 64 | + 'string-locale', |
|
| 65 | + 'string-case-insensitive', |
|
| 66 | 66 | ]; |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -189,8 +189,8 @@ discard block |
||
| 189 | 189 | private function getUseImport(File $phpcsFile, $stackPtr) |
| 190 | 190 | { |
| 191 | 191 | $importTokens = array( |
| 192 | - T_NS_SEPARATOR, |
|
| 193 | - T_STRING, |
|
| 192 | + T_NS_SEPARATOR, |
|
| 193 | + T_STRING, |
|
| 194 | 194 | ); |
| 195 | 195 | |
| 196 | 196 | $start = $phpcsFile->findNext( |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | return array( |
| 206 | 206 | 'startPtr' => $start, |
| 207 | 207 | 'content' => $import, |
| 208 | - ); |
|
| 208 | + ); |
|
| 209 | 209 | |
| 210 | 210 | }//end getUseImport() |
| 211 | 211 | |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | T_STRING, |
| 194 | 194 | ); |
| 195 | 195 | |
| 196 | - $start = $phpcsFile->findNext( |
|
| 196 | + $start = $phpcsFile->findNext( |
|
| 197 | 197 | PHP_CodeSniffer_Tokens::$emptyTokens, |
| 198 | 198 | ($stackPtr + 1), |
| 199 | 199 | null, |
@@ -38,9 +38,9 @@ |
||
| 38 | 38 | * @var array |
| 39 | 39 | */ |
| 40 | 40 | protected $arrayTokens = array( |
| 41 | - T_ARRAY, |
|
| 42 | - T_OPEN_SHORT_ARRAY, |
|
| 43 | - ); |
|
| 41 | + T_ARRAY, |
|
| 42 | + T_OPEN_SHORT_ARRAY, |
|
| 43 | + ); |
|
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | /** |