| @@ 82-89 (lines=8) @@ | ||
| 79 | { |
|
| 80 | $child = & $this->data; |
|
| 81 | ||
| 82 | foreach ($this->currentPath as $part) { |
|
| 83 | if (isset($child[$part])) { |
|
| 84 | $child = & $child[$part]; |
|
| 85 | } else { |
|
| 86 | $child[$part] = []; |
|
| 87 | $child = & $child[$part]; |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||
| 91 | $child[$name] = $value; |
|
| 92 | } |
|
| @@ 158-165 (lines=8) @@ | ||
| 155 | $endPart = array_pop($path); |
|
| 156 | $child = & $this->data; |
|
| 157 | ||
| 158 | foreach ($path as $part) { |
|
| 159 | if (isset($child[$part])) { |
|
| 160 | $child = & $child[$part]; |
|
| 161 | } else { |
|
| 162 | $child[$part] = []; |
|
| 163 | $child = & $child[$part]; |
|
| 164 | } |
|
| 165 | } |
|
| 166 | ||
| 167 | $child[$endPart] = $value; |
|
| 168 | } |
|