|
@@ 68-70 (lines=3) @@
|
| 65 |
|
$split = explode(static::DELIMITER, $key); |
| 66 |
|
$key = implode(static::DELIMITER, array_slice($split, 0, -1)); |
| 67 |
|
$top = $this->get($key); |
| 68 |
|
if (is_null($top) || (!is_array($top) && !($top instanceof ArrayAccess))) { |
| 69 |
|
$top = []; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
$last = $split[count($split) - 1]; |
| 73 |
|
if ($top instanceof ContainerInterface) { |
|
@@ 117-119 (lines=3) @@
|
| 114 |
|
$split = explode(static::DELIMITER, $key); |
| 115 |
|
$key = implode(static::DELIMITER, array_slice($split, 0, -1)); |
| 116 |
|
$top = $this->get($key); |
| 117 |
|
if (is_null($top) || (!is_array($top) && !($top instanceof ArrayAccess))) { |
| 118 |
|
return $this; |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
$last = $split[count($split) - 1]; |
| 122 |
|
if ($top instanceof ContainerInterface) { |