| 1 | <?php |
||
| 9 | class PhanTextLoader implements FileChecker |
||
| 10 | { |
||
| 11 | private $lineMatch = '#\./(?P<fileName>.*?):(?P<lineNumber>[0-9]+)(?P<message>.*)#'; |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $file; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $errors = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * PhanJsonLoader constructor. |
||
| 24 | * @param string $file the path to the file containing phan output |
||
| 25 | */ |
||
| 26 | public function __construct($file) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function getLines() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function isValidLine($file, $lineNumber) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | public function handleNotFoundFile() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | public static function getDescription() |
||
| 71 | |||
| 72 | private function checkForFile($line) |
||
| 76 | |||
| 77 | private function addError($line) |
||
| 83 | } |
||
| 84 |