| Conditions | 3 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function transform($config) |
||
| 33 | { |
||
| 34 | array_walk($config, function (&$value, $key) { |
||
| 35 | if (in_array($key, $this->getKeys(), true)) { |
||
| 36 | $value = $this->transformValue($value); |
||
| 37 | } else { |
||
| 38 | if ($this->shouldRecurse($value, $key)) { |
||
| 39 | $value = $this->transform($value); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | }); |
||
| 43 | |||
| 44 | return $config; |
||
| 45 | } |
||
| 46 | |||
| 66 |