| Conditions | 5 |
| Paths | 16 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function mapToObject($customField, $customFieldDto, array $context = []) |
||
| 19 | { |
||
| 20 | $customFieldDto->id = $customField->getId(); |
||
| 21 | $customFieldDto->users_id = $customField->users_id; |
||
| 22 | $customFieldDto->companies_id = $customField->companies_id; |
||
| 23 | $customFieldDto->name = $customField->name; |
||
| 24 | $customFieldDto->label = $customField->label; |
||
| 25 | $customFieldDto->custom_fields_modules_id = $customField->custom_fields_modules_id; |
||
| 26 | $customFieldDto->fields_type_id = $customField->fields_type_id; |
||
| 27 | |||
| 28 | $customFieldDto->attributes = !empty($customField->attributes) && isJson($customField->attributes) ? json_decode($customField->attributes) : null; |
||
| 29 | $customFieldDto->values = $customField->values ? $this->getValues($customField->values) : null; |
||
| 30 | $customFieldDto->type = $customField->type ? $customField->type->toArray() : null; |
||
| 31 | |||
| 32 | $customFieldDto->created_at = $customField->created_at; |
||
| 33 | $customFieldDto->updated_at = $customField->updated_at; |
||
| 34 | $customFieldDto->is_deleted = $customField->is_deleted; |
||
| 35 | |||
| 36 | return $customFieldDto; |
||
| 37 | } |
||
| 58 |
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