| Conditions | 7 |
| Paths | 6 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 56 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function hashToFieldValue($fieldValue, array $context = array()) |
||
| 22 | { |
||
| 23 | /// @todo resolve refs ? |
||
| 24 | |||
| 25 | if ($this->usingLegacyFieldType()) { |
||
| 26 | $rows = array(); |
||
| 27 | // BC with migrations which used to be valid before version 5.14 - see issue #250 |
||
| 28 | if (count($fieldValue) === 2 && isset($fieldValue['columns']) && isset($fieldValue['rows'])) { |
||
| 29 | $fieldValue = $fieldValue['rows']; |
||
| 30 | } |
||
| 31 | foreach($fieldValue as $data) { |
||
| 32 | $rows[] = new \EzSystems\MatrixBundle\FieldType\Matrix\Row($data); |
||
|
|
|||
| 33 | } |
||
| 34 | return new \EzSystems\MatrixBundle\FieldType\Matrix\Value($rows); |
||
| 35 | } else { |
||
| 36 | $rows = array(); |
||
| 37 | foreach($fieldValue as $data) { |
||
| 38 | $rows[] = new \EzSystems\EzPlatformMatrixFieldtype\FieldType\Value\Row($data); |
||
| 39 | } |
||
| 40 | return new \EzSystems\EzPlatformMatrixFieldtype\FieldType\Value($rows); |
||
| 41 | } |
||
| 61 |
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