| 1 | <?php |
||
| 13 | class FixerHelper |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Removes the given line. |
||
| 17 | * |
||
| 18 | * @param PHP_CodeSniffer_File $file The php cs file. |
||
| 19 | * @param int $line The line which is to be removed |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | 12 | public static function removeLine(PHP_CodeSniffer_File $file, $line) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Removes lines by given start and end. |
||
| 36 | * |
||
| 37 | * @param PHP_CodeSniffer_File $file The php cs file |
||
| 38 | * @param int $startLine The first line which is to be removed |
||
| 39 | * @param int $endLine The last line which is to be removed |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | 12 | public static function removeLines(PHP_CodeSniffer_File $file, $startLine, $endLine) |
|
| 49 | } |
||
| 50 |