| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | protected function normalizeData(Traversable $data, Scope $scope): Traversable |
||
| 28 | { |
||
| 29 | foreach ($data as $key => $val) { |
||
| 30 | if (!$scope->includeValue($this, $key)) { |
||
| 31 | $data->$key = null; |
||
| 32 | continue; |
||
| 33 | } |
||
| 34 | $data->$key = $scope->parseValue($val, $data, $key); |
||
| 35 | } |
||
| 36 | |||
| 37 | return $data; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |