| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 34 | public static function boot() |
||
| 35 | { |
||
| 36 | parent::boot(); |
||
| 37 | |||
| 38 | static::created(function ($results) { |
||
|
|
|||
| 39 | Cache::forget(self::CACHE_KEY); |
||
| 40 | }); |
||
| 41 | |||
| 42 | static::updated(function ($results) { |
||
| 43 | Cache::forget(self::CACHE_KEY); |
||
| 44 | }); |
||
| 45 | |||
| 46 | static::deleted(function ($results) { |
||
| 47 | Cache::forget(self::CACHE_KEY); |
||
| 48 | }); |
||
| 49 | } |
||
| 50 | |||
| 71 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.