Completed
Pull Request — master (#82)
by Luke
02:53
created
src/CSVelte/Taster.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *
131 131
      * @param Readable $input The input source
132 132
      *
133
-     * @return CSVelte\Taster
133
+     * @return Taster
134 134
      *
135 135
      * @todo Get rid of this unless there is a good reason for having it...?
136 136
      * @ignore
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      * such as the delimiting character, quote character, or what types of data are quoted.
148 148
      * are quoted.
149 149
      *
150
-     * @return CSVelte\Flavor The metadata that the CSV format doesn't provide
150
+     * @return Flavor The metadata that the CSV format doesn't provide
151 151
      *
152 152
      * @todo Implement a lickQuote method for when lickQuoteAndDelim method fails
153 153
      * @todo Should there bea lickEscapeChar method? the python module that inspired
@@ -181,6 +181,7 @@  discard block
 block discarded – undo
181 181
      * replaceQuotedSpecialChars method which (at least to me) makes more sense.
182 182
      *
183 183
      * @param string The string to replace quoted strings within
184
+     * @param string $data
184 185
      *
185 186
      * @return string The input string with quoted strings removed
186 187
      *
@@ -196,7 +197,7 @@  discard block
 block discarded – undo
196 197
      * Examine the input source to determine which character(s) are being used
197 198
      * as the end-of-line character.
198 199
      *
199
-     * @return char The end-of-line char for the input data
200
+     * @return string The end-of-line char for the input data
200 201
      * @credit pulled from stackoverflow thread *tips hat to username "Harm"*
201 202
      *
202 203
      * @todo This should throw an exception if it cannot determine the line ending
@@ -349,6 +350,8 @@  discard block
 block discarded – undo
349 350
      * @param char The type of quote character being used (single or double)
350 351
      * @param char The character used as the column delimiter
351 352
      * @param char The character used for newlines
353
+     * @param string $data
354
+     * @param string $eol
352 355
      *
353 356
      * @return string One of four "QUOTING_" constants defined above--see this
354 357
      *                method's description for more info.
@@ -447,7 +450,7 @@  discard block
 block discarded – undo
447 450
      *
448 451
      * @param string The data to check
449 452
      *
450
-     * @return bool Whether the data is quoted or not
453
+     * @return integer Whether the data is quoted or not
451 454
      */
452 455
     protected function isQuoted($data)
453 456
     {
@@ -526,6 +529,7 @@  discard block
 block discarded – undo
526 529
      * to be practical.
527 530
      *
528 531
      * @param string The string of data to check the type of
532
+     * @param string $data
529 533
      *
530 534
      * @return string One of the TYPE_ string constants above
531 535
      *
@@ -587,6 +591,8 @@  discard block
 block discarded – undo
587 591
      * @param char The CSV data's delimiting char (can be a variety of chars but)
588 592
      *     typically is either a comma or a tab, sometimes a pipe)
589 593
      * @param char The CSV data's end-of-line char(s) (\n \r or \r\n)
594
+     * @param string $data
595
+     * @param string $eol
590 596
      *
591 597
      * @return bool True if the data (most likely) contains a header row
592 598
      *
Please login to merge, or discard this patch.
src/CSVelte/Writer.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @throws CSVelte\Exception\WriteBufferException
92 92
      *
93
-     * @return bool
93
+     * @return boolean|null
94 94
      */
95 95
     public function setHeaderRow($headers)
96 96
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      *
167 167
      * @param \Iterator|array of data items
168 168
      *
169
-     * @return CSVelte\Table\AbstractRow
169
+     * @return Row
170 170
      */
171 171
     protected function prepareRow(\Iterator $row)
172 172
     {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      *
185 185
      * @param mixed Any value that can be converted to a CSVelte\Table\Data object
186 186
      *
187
-     * @return CSVelte\Table\Data
187
+     * @return string
188 188
      */
189 189
     protected function prepareData($data)
190 190
     {
Please login to merge, or discard this patch.