Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function handle($event) |
||
18 | { |
||
19 | // Doing this check again in case config was changed at runtime (also useful for tests) |
||
20 | if ( |
||
21 | config('honeybadger.breadcrumbs.enabled', true) === false |
||
22 | || ! in_array(static::class, config('honeybadger.breadcrumbs.automatic', HoneybadgerLaravel::DEFAULT_BREADCRUMBS)) |
||
23 | ) { |
||
24 | return; |
||
25 | } |
||
26 | |||
27 | try { |
||
28 | $this->handleEvent($event); |
||
|
|||
29 | } catch (\Throwable $e) { |
||
30 | // Do nothing; we shouldn't crash the user's app for this. |
||
34 |
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.