@@ -80,7 +80,6 @@ discard block |
||
80 | 80 | /** |
81 | 81 | * Add a new node in the specified index. |
82 | 82 | * |
83 | - * @param integer $index the position. |
|
84 | 83 | * @param mixed $data the data to be stored. |
85 | 84 | */ |
86 | 85 | private function insertEnd($data) { |
@@ -145,7 +144,7 @@ discard block |
||
145 | 144 | /** |
146 | 145 | * Returns the last node with O(1). |
147 | 146 | * |
148 | - * @return mixed null if the list is empty. |
|
147 | + * @return null|SimpleLinkedListNode null if the list is empty. |
|
149 | 148 | */ |
150 | 149 | protected function searchLast() { |
151 | 150 | if($this->head === null) { |
@@ -206,7 +205,7 @@ discard block |
||
206 | 205 | /** |
207 | 206 | * Generator for retrieve all nodes stored. |
208 | 207 | * |
209 | - * @return null if the head is null (or list is empty) |
|
208 | + * @return \Generator if the head is null (or list is empty) |
|
210 | 209 | */ |
211 | 210 | public function getAll() { |
212 | 211 | if($this->head === null) { |