| Total Complexity | 4 | 
| Total Lines | 33 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | class Group extends Model  | 
            ||
| 11 | { | 
            ||
| 12 | use LogsActivity;  | 
            ||
| 13 | |||
| 14 | protected $guarded = [];  | 
            ||
| 15 | |||
| 16 | // Forget cache on updating or saving and deleting  | 
            ||
| 17 | public static function boot()  | 
            ||
| 18 |     { | 
            ||
| 19 | parent::boot();  | 
            ||
| 20 | |||
| 21 |         static::saving(function () { | 
            ||
| 22 | self::cacheKey();  | 
            ||
| 23 | });  | 
            ||
| 24 | |||
| 25 |         static::deleting(function () { | 
            ||
| 26 | self::cacheKey();  | 
            ||
| 27 | });  | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | // Cache Keys  | 
            ||
| 31 | private static function cacheKey()  | 
            ||
| 32 |     { | 
            ||
| 33 |         Cache::has('groups') ? Cache::forget('groups') : ''; | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | // Logs  | 
            ||
| 37 | protected static $logName = 'group';  | 
            ||
| 38 | |||
| 39 | // Relation  | 
            ||
| 40 | public function contacts()  | 
            ||
| 43 | }  | 
            ||
| 44 | }  | 
            ||
| 45 | 
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths