Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function getSolutions(Throwable $throwable): array |
||
25 | { |
||
26 | preg_match(self::REGEX, $throwable->getMessage(), $matches); |
||
27 | |||
28 | $filePath = str_replace(app_path(), '', $throwable->getFile()); |
||
29 | $solution = new FixMissingSemicolonSolution($filePath, $throwable->getLine(), $matches[1]); |
||
30 | |||
31 | return $solution->isRunnable() |
||
32 | ? [$solution] |
||
33 | : []; |
||
34 | } |
||
35 | } |
||
36 |