Skip to content

Commit dbd25d3

Browse files
authored
Merge pull request #362 from PHPCSStandards/feature/universal-commaspacing-bug-fix-phpcsutils-1.1.0
Universal/CommaSpacing: fix for PHPCSUtils 1.1.0
2 parents df7233e + 5329b54 commit dbd25d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Universal/Sniffs/WhiteSpace/CommaSpacingSniff.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ private function getSuffix($phpcsFile, $stackPtr)
357357
case \T_FN:
358358
return 'InFunctionDeclaration';
359359

360+
case \T_USE:
361+
return 'InClosureUse';
362+
360363
case \T_DECLARE:
361364
return 'InDeclare';
362365

@@ -365,7 +368,7 @@ private function getSuffix($phpcsFile, $stackPtr)
365368
case \T_UNSET:
366369
return 'InFunctionCall';
367370

368-
// Long array, long list, isset, unset, empty, exit, eval, control structures.
371+
// Long array, long list, empty, exit, eval, control structures.
369372
default:
370373
return '';
371374
}
@@ -378,9 +381,6 @@ private function getSuffix($phpcsFile, $stackPtr)
378381
}
379382

380383
switch ($tokens[$prevNonEmpty]['code']) {
381-
case \T_USE:
382-
return 'InClosureUse';
383-
384384
case \T_VARIABLE:
385385
case \T_SELF:
386386
case \T_STATIC:

0 commit comments

Comments
 (0)