| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 4 | ||
| Bugs | 3 | Features | 0 |
| 1 | <?php |
||
| 13 | public static function bootRefreshesPermissionCache() |
||
| 14 | { |
||
| 15 | 123 | static::saved(function () { |
|
| 16 | 123 | \app(\config('permission.models.permission'))->forgetCachedPermissions(); |
|
|
|
|||
| 17 | 123 | }); |
|
| 18 | |||
| 19 | 123 | static::deleted(function () { |
|
| 20 | 2 | \app(\config('permission.models.permission'))->forgetCachedPermissions(); |
|
| 21 | 123 | }); |
|
| 24 |
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.