| @@ 296-302 (lines=7) @@ | ||
| 293 | return $array[$key] ?? value($default); |
|
| 294 | } |
|
| 295 | ||
| 296 | foreach (explode('.', $key) as $segment) { |
|
| 297 | if (static::accessible($array) && static::exists($array, $segment)) { |
|
| 298 | $array = $array[$segment]; |
|
| 299 | } else { |
|
| 300 | return value($default); |
|
| 301 | } |
|
| 302 | } |
|
| 303 | ||
| 304 | return $array; |
|
| 305 | } |
|
| @@ 337-343 (lines=7) @@ | ||
| 334 | continue; |
|
| 335 | } |
|
| 336 | ||
| 337 | foreach (explode('.', $key) as $segment) { |
|
| 338 | if (static::accessible($subKeyArray) && static::exists($subKeyArray, $segment)) { |
|
| 339 | $subKeyArray = $subKeyArray[$segment]; |
|
| 340 | } else { |
|
| 341 | return false; |
|
| 342 | } |
|
| 343 | } |
|
| 344 | } |
|
| 345 | ||
| 346 | return true; |
|