| @@ 206-212 (lines=7) @@ | ||
| 203 | continue; |
|
| 204 | } |
|
| 205 | ||
| 206 | foreach (explode('.', (string) $key) as $segment) { |
|
| 207 | if (static::accessible($subKeyArray) && static::exists($subKeyArray, $segment)) { |
|
| 208 | $subKeyArray = $subKeyArray[$segment]; |
|
| 209 | } else { |
|
| 210 | return false; |
|
| 211 | } |
|
| 212 | } |
|
| 213 | } |
|
| 214 | ||
| 215 | return true; |
|
| @@ 104-110 (lines=7) @@ | ||
| 101 | return static::value($array[$key]); |
|
| 102 | } |
|
| 103 | ||
| 104 | foreach (explode('.', (string) $key) as $segment) { |
|
| 105 | if (! array_key_exists($segment, $array)) { |
|
| 106 | return static::value($default); |
|
| 107 | } |
|
| 108 | ||
| 109 | $array = $array[$segment]; |
|
| 110 | } |
|
| 111 | ||
| 112 | return $array; |
|
| 113 | } |
|