| 1 | <?php |
||
| 14 | abstract class LineEndingAbstract implements FileTool { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | private static $lineEndings = [ |
||
|
|
|||
| 20 | 'crlf' => "\r\n", |
||
| 21 | 'lf' => "\n", |
||
| 22 | 'cr' => "\r", |
||
| 23 | ]; |
||
| 24 | |||
| 25 | const REGEX = '!\r\n?!'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var Query |
||
| 29 | */ |
||
| 30 | private $query; |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * @codeCoverageIgnore |
||
| 35 | * @param FileInfo $file |
||
| 36 | * @return boolean |
||
| 37 | */ |
||
| 38 | public function canProcess(FileInfo $file) { |
||
| 41 | |||
| 42 | |||
| 43 | /** |
||
| 44 | * @codeCoverageIgnore |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getDescription() { |
||
| 50 | |||
| 51 | |||
| 52 | /** |
||
| 53 | * @return Query |
||
| 54 | */ |
||
| 55 | 8 | protected function getFindQuery() { |
|
| 67 | |||
| 68 | |||
| 69 | /** |
||
| 70 | * @param FileInfo $file |
||
| 71 | * @return \Funivan\PhpTokenizer\Collection |
||
| 72 | */ |
||
| 73 | protected function getInvalidStartTokens(FileInfo $file) { |
||
| 77 | |||
| 78 | } |
This check marks private properties in classes that are never used. Those properties can be removed.