Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | function init() { |
||
16 | parent::init(); |
||
17 | |||
18 | $this->addFields([ |
||
19 | 'file_id', |
||
20 | 'accessed_at' => ['caption' => __('Accessed At'), 'type' => 'datetime'], |
||
21 | 'action' => ['caption' => __('Action'), 'type' => 'enum', 'values' => ['download' => __('Download'), 'preview' => __('Preview'), 'inline' => __('Inline')]], |
||
22 | 'ip_address' => ['caption' => __('IP Address')], |
||
23 | 'host_name' => ['caption' => __('Host Name')] |
||
24 | ]); |
||
25 | |||
26 | $this->hasOne('accessed_by', [User::class, 'our_field' => 'accessed_by'])->addTitle(['field' => 'accessed_by_user', 'caption' => __('Accessed By')]); |
||
27 | } |
||
28 | } |
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