| Conditions | 3 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function walk(array $result): array |
||
| 22 | { |
||
| 23 | 3 | array_walk($result, function (&$value, $key) { |
|
| 24 | 3 | if ($value === null || !isset($this->typeMapping[$key])) { |
|
| 25 | 1 | return; |
|
| 26 | } |
||
| 27 | |||
| 28 | 2 | $value = $this->transform($value, $this->typeMapping[$key]); |
|
| 29 | 3 | }); |
|
| 30 | |||
| 31 | 2 | return $result; |
|
| 32 | } |
||
| 47 |