| @@ 49-55 (lines=7) @@ | ||
| 46 | ||
| 47 | $attributes = $this->attributes; | |
| 48 | ||
| 49 |         foreach (explode('.', $name) as $key) { | |
| 50 |             if (array_key_exists($key, $attributes) && is_array($attributes[$key])) { | |
| 51 | $attributes = $attributes[$key]; | |
| 52 |             } else { | |
| 53 | return; | |
| 54 | } | |
| 55 | } | |
| 56 | ||
| 57 | return $attributes; | |
| 58 | } | |
| @@ 75-81 (lines=7) @@ | ||
| 72 | ||
| 73 | $attributes = $this->attributes; | |
| 74 | ||
| 75 |         foreach (explode('.', $name) as $key) { | |
| 76 |             if (array_key_exists($key, $attributes) && is_array($attributes[$key])) { | |
| 77 | $attributes = $attributes[$key]; | |
| 78 |             } else { | |
| 79 | return false; | |
| 80 | } | |
| 81 | } | |
| 82 | ||
| 83 | return true; | |
| 84 | } | |