File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/Standards/Generic/Sniffs/WhiteSpace Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1017,13 +1017,14 @@ public function process(File $phpcsFile, $stackPtr)
1017
1017
if ($ tokens [$ i ]['code ' ] === T_OPEN_SHORT_ARRAY ) {
1018
1018
$ disableExactEnd = max ($ disableExactEnd , $ tokens [$ i ]['bracket_closer ' ]);
1019
1019
if ($ this ->debug === true ) {
1020
- $ line = $ tokens [$ i ]['line ' ];
1021
- $ type = $ tokens [$ disableExactEnd ]['type ' ];
1020
+ $ line = $ tokens [$ i ]['line ' ];
1021
+ $ type = $ tokens [$ disableExactEnd ]['type ' ];
1022
+ $ endLine = $ tokens [$ disableExactEnd ]['line ' ];
1022
1023
echo "Opening short array bracket found on line $ line " .PHP_EOL ;
1023
1024
if ($ disableExactEnd === $ tokens [$ i ]['bracket_closer ' ]) {
1024
- echo "\t=> disabling exact indent checking until $ disableExactEnd ( $ type) " .PHP_EOL ;
1025
+ echo "\t=> disabling exact indent checking until $ disableExactEnd ( $ type) on line $ endLine " .PHP_EOL ;
1025
1026
} else {
1026
- echo "\t=> continuing to disable exact indent checking until $ disableExactEnd ( $ type) " .PHP_EOL ;
1027
+ echo "\t=> continuing to disable exact indent checking until $ disableExactEnd ( $ type) on line $ endLine " .PHP_EOL ;
1027
1028
}
1028
1029
}
1029
1030
}
You can’t perform that action at this time.
0 commit comments