| 1 | <?php |
||
| 9 | class JsonLintProcessor implements JsonLintProcessorInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ToolPathFinder |
||
| 13 | */ |
||
| 14 | private $toolPathFinder; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * JsonLintProcessor constructor. |
||
| 18 | * |
||
| 19 | * @param ToolPathFinder $toolPathFinder |
||
| 20 | */ |
||
| 21 | public function __construct(ToolPathFinder $toolPathFinder) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $file |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function process($file) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $file |
||
| 40 | * |
||
| 41 | * @return Process |
||
| 42 | */ |
||
| 43 | private function execute($file) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param Process $process |
||
| 60 | * |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | private function setErrors(Process $process) |
||
| 69 | } |
||
| 70 |