@@ 22-28 (lines=7) @@ | ||
19 | ||
20 | $attributes = $this->getArrayCopy(); |
|
21 | ||
22 | foreach (explode('.', $name) as $key) { |
|
23 | if (is_array($attributes) && array_key_exists($key, $attributes)) { |
|
24 | $attributes = $attributes[$key]; |
|
25 | } else { |
|
26 | return; |
|
27 | } |
|
28 | } |
|
29 | ||
30 | return $attributes; |
|
31 | } |
|
@@ 48-54 (lines=7) @@ | ||
45 | ||
46 | $attributes = $this->getArrayCopy(); |
|
47 | ||
48 | foreach (explode('.', $name) as $key) { |
|
49 | if (is_array($attributes) && array_key_exists($key, $attributes)) { |
|
50 | $attributes = $attributes[$key]; |
|
51 | } else { |
|
52 | return false; |
|
53 | } |
|
54 | } |
|
55 | ||
56 | return true; |
|
57 | } |