@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * Get the current key (column number or header, if available) |
134 | 134 | * |
135 | - * @return string The "current" key |
|
135 | + * @return integer The "current" key |
|
136 | 136 | * @access public |
137 | 137 | * @todo Figure out if this can return a CSVelte\Table\HeaderData object so long as it |
138 | 138 | * has a __toString() method that generated the right key... |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * Advance the internal pointer to the next column's data object |
147 | 147 | * Also returns the next column's data object if there is one |
148 | 148 | * |
149 | - * @return CSVelte\Table\Data The "next" column's data |
|
149 | + * @return string|null The "next" column's data |
|
150 | 150 | * @access public |
151 | 151 | */ |
152 | 152 | public function next() |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | /** |
159 | 159 | * Return the internal pointer to the first column and return that object |
160 | 160 | * |
161 | - * @return null|AbstractRow |
|
161 | + * @return string|null |
|
162 | 162 | */ |
163 | 163 | public function rewind() |
164 | 164 | { |
@@ -152,7 +152,9 @@ |
||
152 | 152 | public function next() |
153 | 153 | { |
154 | 154 | $this->position++; |
155 | - if ($this->valid()) return $this->current(); |
|
155 | + if ($this->valid()) { |
|
156 | + return $this->current(); |
|
157 | + } |
|
156 | 158 | } |
157 | 159 | |
158 | 160 | /** |