| @@ 103-105 (lines=3) @@ | ||
| 100 | foreach ($map as $index => $name) { |
|
| 101 | $phpcsFile->fixer->replaceToken($index, $name); |
|
| 102 | $endIndex = $phpcsFile->findNext([T_SEMICOLON, T_OPEN_CURLY_BRACKET], $index + 1); |
|
| 103 | for ($i = $index + 1; $i < $endIndex; $i++) { |
|
| 104 | $phpcsFile->fixer->replaceToken($i, ''); |
|
| 105 | } |
|
| 106 | } |
|
| 107 | ||
| 108 | $phpcsFile->fixer->endChangeset(); |
|
| @@ 770-772 (lines=3) @@ | ||
| 767 | if ($found === 'newline') { |
|
| 768 | $prev = $phpcsFile->findPrevious(T_WHITESPACE, ($index['value'] - 1), null, true); |
|
| 769 | $phpcsFile->fixer->beginChangeset(); |
|
| 770 | for ($i = ($prev + 1); $i < $index['value']; $i++) { |
|
| 771 | $phpcsFile->fixer->replaceToken($i, ''); |
|
| 772 | } |
|
| 773 | ||
| 774 | $phpcsFile->fixer->replaceToken(($index['value'] - 1), str_repeat(' ', $expected)); |
|
| 775 | $phpcsFile->fixer->endChangeset(); |
|