Completed
Push — master ( b74ed5...7164ce )
by Siro Díaz
01:23
created
DataStructures/Lists/CircularLinkedList.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.