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