Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public static function renderException(\Exception $exception) |
||
24 | { |
||
25 | $error = new MessageBag([ |
||
26 | 'type' => get_class($exception), |
||
27 | 'message' => $exception->getMessage(), |
||
28 | 'file' => $exception->getFile(), |
||
29 | 'line' => $exception->getLine(), |
||
30 | ]); |
||
31 | |||
32 | $errors = new ViewErrorBag(); |
||
33 | $errors->put('exception', $error); |
||
34 | |||
35 | return view('backend.partials.exception', compact('errors'))->render(); |
||
|
|||
36 | } |
||
53 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.