| Total Complexity | 3 | 
| Total Lines | 25 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 14 | trait HasDynamicSettings  | 
            ||
| 15 | { | 
            ||
| 16 | public function dynamicSetting(): MorphOne  | 
            ||
| 17 |     { | 
            ||
| 18 | return $this->morphOne(DynamicSetting::class, 'model');  | 
            ||
| 19 | }  | 
            ||
| 20 | |||
| 21 | /**  | 
            ||
| 22 | * Get the setting from single level  | 
            ||
| 23 | */  | 
            ||
| 24 | public function getSetting(string $key, mixed $fallback = null): mixed  | 
            ||
| 25 |     { | 
            ||
| 26 | return $this->dynamicSetting?->getSetting($key, $fallback) ?? $fallback;  | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * Get the setting from 2 levels:  | 
            ||
| 31 | * - First level: current instance  | 
            ||
| 32 | * - Fallback level: global instance  | 
            ||
| 33 | */  | 
            ||
| 34 | public function getMultiLevelsSetting(string $key, mixed $fallback = null): mixed  | 
            ||
| 39 | }  | 
            ||
| 40 | }  | 
            ||
| 41 | 
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