Completed
Push — releases/v0.2 ( 547b38...47521e )
by Luke
05:58
created
src/CSVelte/IO/Stream.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -16,14 +16,11 @@
 block discarded – undo
16 16
 use CSVelte\Traits\IsReadable;
17 17
 use CSVelte\Traits\IsWritable;
18 18
 use CSVelte\Traits\IsSeekable;
19
-
20 19
 use CSVelte\Contract\Readable;
21 20
 use CSVelte\Contract\Writable;
22 21
 use CSVelte\Contract\Seekable;
23 22
 
24 23
 use \InvalidArgumentException;
25
-use CSVelte\Exception\NotYetImplementedException;
26
-use CSVelte\Exception\EndOfFileException;
27 24
 use CSVelte\Exception\IOException;
28 25
 
29 26
 /**
Please login to merge, or discard this patch.
src/CSVelte/Writer.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * likely buffer the output so that this may be called after writeRows()
91 91
      *
92 92
      * @param \Iterator|array A list of header values
93
-     * @return boolean
93
+     * @return boolean|null
94 94
      * @throws \CSVelte\Exception\WriterException
95 95
      */
96 96
     public function setHeaderRow($headers)
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      * This means taking an array of data, and converting it to a Row object
162 162
      *
163 163
      * @param \Iterator|array of data items
164
-     * @return CSVelte\Table\AbstractRow
164
+     * @return Row
165 165
      * @access protected
166 166
      */
167 167
     protected function prepareRow(Iterator $row)
@@ -189,6 +189,9 @@  discard block
 block discarded – undo
189 189
         return $this->quoteString($data);
190 190
     }
191 191
 
192
+    /**
193
+     * @param string $str
194
+     */
192 195
     protected function quoteString($str)
193 196
     {
194 197
         $flvr = $this->getFlavor();
Please login to merge, or discard this patch.
src/CSVelte/Taster.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,6 +165,7 @@  discard block
 block discarded – undo
165 165
      * replaceQuotedSpecialChars method which (at least to me) makes more sense.
166 166
      *
167 167
      * @param string The string to replace quoted strings within
168
+     * @param string $data
168 169
      * @return string The input string with quoted strings removed
169 170
      * @access protected
170 171
      * @todo Replace code that uses this method with the replaceQuotedSpecialChars
@@ -414,7 +415,7 @@  discard block
 block discarded – undo
414 415
      * Determine whether a particular string of data has quotes around it.
415 416
      *
416 417
      * @param string The data to check
417
-     * @return boolean Whether the data is quoted or not
418
+     * @return integer Whether the data is quoted or not
418 419
      * @access protected
419 420
      */
420 421
     protected function isQuoted($data)
@@ -464,6 +465,8 @@  discard block
 block discarded – undo
464 465
      *
465 466
      * @param string The string to do the replacements on
466 467
      * @param string The delimiter character to replace
468
+     * @param string $data
469
+     * @param string $delim
467 470
      * @return string The data with replacements performed
468 471
      * @access protected
469 472
      * @todo I could probably pass in (maybe optionally) the newline character I
@@ -490,6 +493,7 @@  discard block
 block discarded – undo
490 493
      * to be practical.
491 494
      *
492 495
      * @param string The string of data to check the type of
496
+     * @param string $data
493 497
      * @return string One of the TYPE_ string constants above
494 498
      * @access protected
495 499
      * @uses \Carbon\Carbon date/time ilbrary/class
@@ -546,6 +550,7 @@  discard block
 block discarded – undo
546 550
      * @param string $delim The CSV data's delimiting char (can be a variety of chars but)
547 551
      *     typically $eol is either a comma or a tab, sometimes a pipe)
548 552
      * @param string The CSV data's end-of-line char(s) (\n \r or \r\n)
553
+     * @param string $eol
549 554
      * @return boolean True if the data (most likely) contains a header row
550 555
      * @access public
551 556
      * @todo This method needs a total refactor. It's not necessary to loop twice
Please login to merge, or discard this patch.
src/CSVelte/Reader.php 1 patch
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      * readable (can be read). This will make sure that whatever is passed to
126 126
      * the reader meets these expectations and set $this->source.
127 127
      *
128
-     * @param \CSVelte\Contract\Readable|object|string $input See description
128
+     * @param Readable $input See description
129 129
      * @return $this
130 130
      */
131 131
     protected function setSource($input)
@@ -326,6 +326,9 @@  discard block
 block discarded – undo
326 326
      * @todo This actually shouldn't even be necessary. Characters should be read
327 327
      *     in one at a time and a quote that follows another should just be ignored
328 328
      *     deeming this unnecessary.
329
+     * @param string $str
330
+     * @param string $esc
331
+     * @param string $quo
329 332
      */
330 333
     protected function unEscape($str, $esc, $quo)
331 334
     {
@@ -336,6 +339,7 @@  discard block
 block discarded – undo
336 339
      * Parse a line of CSV data into an array of columns
337 340
      *
338 341
      * @param string A line of CSV data to parse
342
+     * @param string $line
339 343
      * @return array An array of columns
340 344
      * @access protected
341 345
      * @internal
@@ -415,7 +419,7 @@  discard block
 block discarded – undo
415 419
     /**
416 420
      * Retrieve header row.
417 421
      *
418
-     * @return CSVelte\Table\HeaderRow|null The header row if there is one
422
+     * @return HeaderRow The header row if there is one
419 423
      */
420 424
     public function header()
421 425
     {
@@ -456,7 +460,7 @@  discard block
 block discarded – undo
456 460
     /**
457 461
      * Returns an iterator with rows from user-supplied filter functions removed
458 462
      *
459
-     * @return CSVelte\Reader\FilteredReader An iterator with filtered rows
463
+     * @return FilteredReader An iterator with filtered rows
460 464
      */
461 465
     public function filter()
462 466
     {
Please login to merge, or discard this patch.