Total Complexity | 7 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class Profile extends Model |
||
10 | { |
||
11 | use HasFactory; |
||
12 | |||
13 | protected $guarded = []; |
||
14 | |||
15 | // Attribute Casting |
||
16 | protected $casts = [ |
||
17 | 'phone_no' => 'array', |
||
18 | ]; |
||
19 | |||
20 | // Accessors |
||
21 | public function getStatusAttribute($attribute) |
||
22 | { |
||
23 | return isset($this->status) ? [ |
||
24 | 1 => 'Active', |
||
25 | 2 => 'Inactive', |
||
26 | 3 => 'Blocked', |
||
27 | ][$attribute] : null; |
||
28 | } |
||
29 | |||
30 | public function getBloodGroupAttribute($attribute) |
||
42 | } |
||
43 | |||
44 | public function getMartialStatusAttribute($attribute) |
||
45 | { |
||
46 | return isset($this->martial_status) ? [ |
||
47 | 1 => 'Married', |
||
48 | 2 => 'Unmarried', |
||
49 | 3 => 'Divorced', |
||
50 | 4 => 'Widowed', |
||
51 | ][$attribute] : null; |
||
52 | } |
||
53 | |||
54 | // Relation |
||
55 | public function user() |
||
58 | } |
||
59 | } |
||
60 |
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