Conditions | 4 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | private function glueLoop(array $array, $isContaindOnlyKey = true, $prev = '') |
||
45 | { |
||
46 | foreach ($array as $key => $value) { |
||
47 | $curr = $this->getCurrentGlueName($key, $prev); |
||
48 | |||
49 | if ($this->hasChild($value)) { |
||
50 | $this->glueLoop($value, $isContaindOnlyKey, $curr); |
||
51 | continue; |
||
52 | } |
||
53 | |||
54 | if ($isContaindOnlyKey) { |
||
55 | $this->glueKeys[] = $curr; |
||
56 | } else { |
||
57 | $this->glueKeys[$curr] = $value; |
||
58 | } |
||
59 | } |
||
60 | } |
||
61 | |||
74 |