|
@@ 111-113 (lines=3) @@
|
| 108 |
|
$split = explode(static::DELIMITER, $key); |
| 109 |
|
$key = implode(static::DELIMITER, array_slice($split, 0, -1)); |
| 110 |
|
$top = $this->get($key); |
| 111 |
|
if (is_null($top) || (!is_array($top) && !($top instanceof ArrayAccess))) { |
| 112 |
|
$top = []; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
$last = $split[count($split) - 1]; |
| 116 |
|
if ($top instanceof ContainerInterface) { |
|
@@ 149-151 (lines=3) @@
|
| 146 |
|
$split = explode(static::DELIMITER, $key); |
| 147 |
|
$key = implode(static::DELIMITER, array_slice($split, 0, -1)); |
| 148 |
|
$top = $this->get($key); |
| 149 |
|
if (is_null($top) || (!is_array($top) && !($top instanceof ArrayAccess))) { |
| 150 |
|
return $this; |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
$last = $split[count($split) - 1]; |
| 154 |
|
if ($top instanceof ContainerInterface) { |