Completed
Push — master ( b02a4e...93d881 )
by Siro Díaz
01:20
created
DataStructures/Lists/CircularLinkedList.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,6 @@  discard block
 block discarded – undo
58 58
     /**
59 59
      * Add a new node in the specified index.
60 60
      *
61
-     * @param integer $index the position.
62 61
      * @param mixed $data the data to be stored.
63 62
      */
64 63
     protected function insertEnd($data) {
@@ -103,7 +102,7 @@  discard block
 block discarded – undo
103 102
     /**
104 103
      * Returns the last node with O(1).
105 104
      *
106
-     * @return mixed null if the list is empty.
105
+     * @return null|SimpleLinkedListNode null if the list is empty.
107 106
      */
108 107
     protected function searchLast() {
109 108
         if($this->head === null) {
@@ -269,7 +268,7 @@  discard block
 block discarded – undo
269 268
     /**
270 269
      * Generator for retrieve all nodes stored.
271 270
      * 
272
-     * @return null if the head is null (or list is empty)
271
+     * @return \Generator if the head is null (or list is empty)
273 272
      */
274 273
     public function getAll() {
275 274
         if($this->head === null) {
Please login to merge, or discard this patch.