@@ -21,7 +21,7 @@ |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | // Provides read-only access to $length and $dom |
24 | - public function __get ($prop) { |
|
24 | + public function __get($prop) { |
|
25 | 25 | if ($prop == 'length') { |
26 | 26 | return $this->length; |
27 | 27 | } |
@@ -24,11 +24,9 @@ discard block |
||
24 | 24 | public function __get ($prop) { |
25 | 25 | if ($prop == 'length') { |
26 | 26 | return $this->length; |
27 | - } |
|
28 | - else if ($prop == 'dom') { |
|
27 | + } else if ($prop == 'dom') { |
|
29 | 28 | return $this->dom; |
30 | - } |
|
31 | - else { |
|
29 | + } else { |
|
32 | 30 | return null; |
33 | 31 | } |
34 | 32 | } |
@@ -56,8 +54,9 @@ discard block |
||
56 | 54 | public function item($index) { |
57 | 55 | if (isset($this->array[$index])) { |
58 | 56 | return $this->array[$index]; |
57 | + } else { |
|
58 | + return FALSE; |
|
59 | 59 | } |
60 | - else return FALSE; |
|
61 | 60 | } |
62 | 61 | |
63 | 62 | public function count() { |