@@ -125,26 +125,26 @@ |
||
| 125 | 125 | return $index; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | - /** |
|
| 129 | - * Returns the element at the given index (or nothing if the index isn't present) |
|
| 130 | - * |
|
| 131 | - * @param int $index |
|
| 132 | - * @return mixed |
|
| 133 | - */ |
|
| 134 | - public function get($index) { |
|
| 135 | - if (isset($this->collection[$index])) { |
|
| 136 | - return $this->collection[$index]; |
|
| 137 | - } |
|
| 138 | - } |
|
| 128 | + /** |
|
| 129 | + * Returns the element at the given index (or nothing if the index isn't present) |
|
| 130 | + * |
|
| 131 | + * @param int $index |
|
| 132 | + * @return mixed |
|
| 133 | + */ |
|
| 134 | + public function get($index) { |
|
| 135 | + if (isset($this->collection[$index])) { |
|
| 136 | + return $this->collection[$index]; |
|
| 137 | + } |
|
| 138 | + } |
|
| 139 | 139 | |
| 140 | - /** |
|
| 141 | - * Returns the index of the given element or FALSE if the element can't be found |
|
| 142 | - * |
|
| 143 | - * @param mixed $element |
|
| 144 | - * @return int the index for the given element |
|
| 145 | - */ |
|
| 146 | - public function indexOf($element) { |
|
| 147 | - return array_search($element, $this->collection, true); |
|
| 148 | - } |
|
| 140 | + /** |
|
| 141 | + * Returns the index of the given element or FALSE if the element can't be found |
|
| 142 | + * |
|
| 143 | + * @param mixed $element |
|
| 144 | + * @return int the index for the given element |
|
| 145 | + */ |
|
| 146 | + public function indexOf($element) { |
|
| 147 | + return array_search($element, $this->collection, true); |
|
| 148 | + } |
|
| 149 | 149 | |
| 150 | 150 | } |