| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 5 |
| Ratio | 55.56 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | 9 | public function unFlatten($array = null) |
|
| 8 | { |
||
| 9 | 9 | if ($array === null) { |
|
| 10 | 9 | $array = $this; |
|
| 11 | 6 | } |
|
| 12 | 9 | $result = []; |
|
| 13 | 9 | foreach ($array as $key => $value) { |
|
| 14 | 9 | $keys = explode(':', $key); |
|
| 15 | 9 | $mu = $this->deepen($keys, $value); |
|
| 16 | 9 | $result = array_merge_recursive($result, $mu); |
|
| 31 |