@@ -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': |
@@ -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': |
@@ -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': |
@@ -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': |
@@ -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': |
@@ -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': |
@@ -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, |
@@ -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, |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | '@throws' => 1, |
81 | 81 | '@var' => 2, |
82 | 82 | ); |
83 | - $scanTokens = array( |
|
83 | + $scanTokens = array( |
|
84 | 84 | T_NS_SEPARATOR, |
85 | 85 | T_DOC_COMMENT_OPEN_TAG, |
86 | 86 | ); |
@@ -216,13 +216,13 @@ discard block |
||
216 | 216 | $end, |
217 | 217 | true |
218 | 218 | ); |
219 | - $classNameEnd = $phpcsFile->findNext( |
|
219 | + $classNameEnd = $phpcsFile->findNext( |
|
220 | 220 | $this->classNameTokens, |
221 | 221 | ($classNameStart + 1), |
222 | 222 | $end, |
223 | 223 | true |
224 | 224 | ); |
225 | - $useEnd = $phpcsFile->findNext( |
|
225 | + $useEnd = $phpcsFile->findNext( |
|
226 | 226 | array( |
227 | 227 | T_SEMICOLON, |
228 | 228 | T_COMMA, |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $classNameEnd, |
231 | 231 | $end |
232 | 232 | ); |
233 | - $aliasNamePtr = $phpcsFile->findPrevious( |
|
233 | + $aliasNamePtr = $phpcsFile->findPrevious( |
|
234 | 234 | PHP_CodeSniffer_Tokens::$emptyTokens, |
235 | 235 | ($useEnd - 1), |
236 | 236 | null, |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | $nameSpace, |
335 | 335 | $startPtr, |
336 | 336 | $endPtr, |
337 | - $isDocBlock=false |
|
337 | + $isDocBlock = false |
|
338 | 338 | ) { |
339 | 339 | $msg = 'Shorthand possible. Replace "%s" with "%s"'; |
340 | 340 | $fixable = false; |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | if (array_key_exists($fullClassName, $useStatements) === true) { |
347 | 347 | $replacement = $useStatements[$fullClassName]; |
348 | 348 | |
349 | - $data = array( |
|
349 | + $data = array( |
|
350 | 350 | $className, |
351 | 351 | $replacement, |
352 | 352 | ); |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | } else if (strpos($fullClassName, $nameSpace) === 0) { |
362 | 362 | $replacement = substr($fullClassName, strlen($nameSpace)); |
363 | 363 | |
364 | - $data = array( |
|
364 | + $data = array( |
|
365 | 365 | $className, |
366 | 366 | $replacement, |
367 | 367 | ); |