| Total Complexity | 7 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Gallery extends Model implements HasMedia |
||
| 13 | { |
||
| 14 | use LogsActivity, InteractsWithMedia; |
||
| 15 | protected $guarded = []; |
||
| 16 | |||
| 17 | // Forget cache on updating or saving and deleting |
||
| 18 | public static function boot() |
||
| 28 | }); |
||
| 29 | } |
||
| 30 | |||
| 31 | // Cache Keys |
||
| 32 | private static function cacheKey() |
||
| 33 | { |
||
| 34 | Cache::has('galleries') ? Cache::forget('galleries') : ''; |
||
| 35 | Cache::has('slider') ? Cache::forget('slider') : ''; |
||
| 36 | |||
| 37 | } |
||
| 38 | |||
| 39 | // Logs |
||
| 40 | protected static $logName = 'gallery'; |
||
| 41 | |||
| 42 | public function getActivitylogOptions(): LogOptions |
||
| 43 | { |
||
| 44 | return LogOptions::defaults(); |
||
| 45 | } |
||
| 46 | |||
| 47 | protected $casts = [ |
||
| 48 | 'videos' => 'array', |
||
| 49 | ]; |
||
| 50 | |||
| 51 | |||
| 52 | // Accessors |
||
| 53 | public function getImagesAttribute() |
||
| 56 | } |
||
| 57 | |||
| 58 | } |
||
| 59 |
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