We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public static function format($e) |
||
16 | { |
||
17 | $code = $e->getCode(); |
||
18 | if ($e instanceof Error && $e->getPrevious()) { |
||
19 | $code = $e->getPrevious()->getCode(); |
||
20 | } |
||
21 | |||
22 | $formattedError = FormattedError::createFromException($e); |
||
23 | $formattedError['code'] = $code; |
||
24 | |||
25 | return $formattedError; |
||
26 | } |
||
27 | |||
38 |