1 | <?php |
||
9 | class CodeClimateLoader implements FileChecker |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $file; |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $errors = []; |
||
20 | |||
21 | /** |
||
22 | * PhpMdLoader constructor. |
||
23 | * @param string $file the path to the phan json file |
||
24 | */ |
||
25 | public function __construct($file) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function getLines() |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function isValidLine($file, $lineNumber) |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function handleNotFoundFile() |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public static function getDescription() |
||
66 | |||
67 | private function addError($line) |
||
79 | |||
80 | private function convertToJson($codeClimateFormat) |
||
86 | } |
||
87 |