| Total Complexity | 8 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class Module extends Eloquent |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The attributes that are mass assignable. |
||
| 13 | * |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | protected $fillable = [ |
||
| 17 | 'name', 'slug', 'hintpath', 'path', 'type', 'version', 'author', 'json' |
||
| 18 | ]; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The attributes that are castable. |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $casts = [ |
||
| 26 | 'json' => 'array', |
||
| 27 | ]; |
||
| 28 | |||
| 29 | public function getSettingsAttribute() |
||
| 30 | { |
||
| 31 | if(!array_key_exists('admin', $this->json)) { |
||
| 32 | return array(); |
||
| 33 | } |
||
| 34 | |||
| 35 | if(!array_key_exists('settings', $this->json['admin'])) { |
||
| 36 | return array(); |
||
| 37 | } |
||
| 38 | |||
| 39 | return $this->json['admin']['settings']; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getSetting(string $string) |
||
| 46 | } |
||
| 47 | |||
| 48 | private function resolveSetting($var) |
||
| 61 | } |
||
| 62 | } |
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