| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | public function toOptionArray() |
||
| 46 | { |
||
| 47 | $customer_attributes = $this->customer->getAttributes(); |
||
| 48 | $attributesArrays = []; |
||
| 49 | $attributesArrays[] = ['label' => __('Please select'), 'value' => null]; |
||
| 50 | |||
| 51 | foreach ($customer_attributes as $atribute => $val) { |
||
| 52 | if ($val) { |
||
| 53 | $attributesArrays[] = [ |
||
| 54 | 'label' => $atribute, |
||
| 55 | 'value' => $atribute, |
||
| 56 | ]; |
||
| 57 | } |
||
| 58 | } |
||
| 59 | |||
| 60 | return $attributesArrays; |
||
| 61 | } |
||
| 63 |
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