Conditions | 6 |
Paths | 6 |
Total Lines | 23 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function fillForm(Example $data) |
||
24 | { |
||
25 | $I = $this->tester; |
||
26 | foreach ($data as $field => $value) { |
||
27 | if (is_null($value)) { |
||
28 | continue; |
||
29 | } |
||
30 | switch (true) { |
||
31 | case in_array($field, ['type_id', 'nic_media', 'digit_capacity_id']): |
||
32 | (new Dropdown($I, "select[name$=\"[{$field}]\"]"))->setValue($value); |
||
33 | break; |
||
34 | case in_array($field, ['note']): |
||
35 | (new Textarea($I, "textarea[name$=\"[{$field}]\"]"))->setValue($value); |
||
36 | break; |
||
37 | case in_array($field, ['net_id', 'kvm_id', 'pdu_id', 'rack_id', 'pdu2_id', 'net2_id', 'ipmi_id', 'location_id']): |
||
38 | (new Select2($I, "select[name$=\"[{$field}]\"]"))->setValue($value); |
||
39 | break; |
||
40 | default: |
||
41 | (new Input($I, "input[name$=\"[{$field}]\"]"))->setValue($value); |
||
42 | } |
||
43 | } |
||
44 | |||
45 | return $this; |
||
46 | } |
||
48 |
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