| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | 9 | public function unFlatten($array = null) |
|
| 8 | { |
||
| 9 | 9 | if ($array === null) { |
|
| 10 | 9 | $array = $this; |
|
| 11 | 9 | } |
|
| 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); |
|
| 17 | 9 | } |
|
| 18 | 9 | return $result; |
|
| 19 | } |
||
| 20 | |||
| 31 |