Total Complexity | 4 |
Total Lines | 94 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class BlockedType extends Model |
||
9 | { |
||
10 | use SoftDeletes; |
||
11 | |||
12 | /** |
||
13 | * The table associated with the model. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $table; |
||
18 | |||
19 | /** |
||
20 | * The connection name for the model. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $connection; |
||
25 | |||
26 | /** |
||
27 | * Indicates if the model should be timestamped. |
||
28 | * |
||
29 | * @var bool |
||
30 | */ |
||
31 | public $timestamps = true; |
||
32 | |||
33 | /** |
||
34 | * The attributes that are not mass assignable. |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $guarded = [ |
||
39 | 'id', |
||
40 | ]; |
||
41 | |||
42 | /** |
||
43 | * The attributes that should be mutated to dates. |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $dates = [ |
||
48 | 'created_at', |
||
49 | 'updated_at', |
||
50 | 'deleted_at', |
||
51 | ]; |
||
52 | |||
53 | /** |
||
54 | * Fillable fields. |
||
55 | * |
||
56 | * @var array |
||
57 | */ |
||
58 | protected $fillable = [ |
||
59 | 'slug', |
||
60 | 'name', |
||
61 | ]; |
||
62 | |||
63 | protected $casts = [ |
||
64 | 'slug' => 'string', |
||
65 | 'name' => 'string', |
||
66 | ]; |
||
67 | |||
68 | /** |
||
69 | * Create a new instance to set the table and connection. |
||
70 | * |
||
71 | * @return void |
||
72 | */ |
||
73 | public function __construct($attributes = []) |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * Get the database connection. |
||
82 | */ |
||
83 | public function getConnectionName() |
||
84 | { |
||
85 | return $this->connection; |
||
86 | } |
||
87 | |||
88 | /** |
||
89 | * Get the database table. |
||
90 | */ |
||
91 | public function getTableName() |
||
92 | { |
||
93 | return $this->table; |
||
94 | } |
||
95 | |||
96 | /** |
||
97 | * Get the blockedItems for the BlockedType. |
||
98 | */ |
||
99 | public function blockedItems() |
||
102 | } |
||
103 | } |
||
104 |
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