@@ 186-192 (lines=7) @@ | ||
183 | $fix = $phpcsFile->addFixableError($error, $commentEnd, self::CODE_SPACING_AFTER); |
|
184 | if ($fix) { |
|
185 | $phpcsFile->fixer->beginChangeset(); |
|
186 | for ($i = ($prev + 1); $i < $commentEnd; $i++) { |
|
187 | if ($tokens[$i + 1]['line'] === $tokens[$commentEnd]['line']) { |
|
188 | break; |
|
189 | } |
|
190 | $phpcsFile->fixer->replaceToken($i, ''); |
|
191 | } |
|
192 | $phpcsFile->fixer->endChangeset(); |
|
193 | } |
|
194 | } |
|
195 | ||
@@ 280-286 (lines=7) @@ | ||
277 | $fix = $phpcsFile->addFixableError($error, $firstTag, self::CODE_SPACING_BEFORE_TAGS); |
|
278 | if ($fix) { |
|
279 | $phpcsFile->fixer->beginChangeset(); |
|
280 | for ($i = ($prev + 1); $i < $firstTag; $i++) { |
|
281 | if ($tokens[$i]['line'] === $tokens[$firstTag]['line']) { |
|
282 | break; |
|
283 | } |
|
284 | $phpcsFile->fixer->replaceToken($i, ''); |
|
285 | } |
|
286 | ||
287 | $indent = str_repeat(' ', $tokens[$stackPtr]['column']); |
|
288 | $phpcsFile->fixer->addContent($prev, $phpcsFile->eolChar . $indent . '*' . $phpcsFile->eolChar); |
|
289 | $phpcsFile->fixer->endChangeset(); |