Passed
Branch refactor/164-removeoldcollecti... (7da188)
by Luke
02:49
created
src/CSVelte/Reader.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,9 @@
 block discarded – undo
14 14
 namespace CSVelte;
15 15
 
16 16
 use CSVelte\Contract\Streamable;
17
-
18 17
 use CSVelte\Table\Row;
19 18
 use CSVelte\Table\HeaderRow;
20 19
 use CSVelte\Reader\FilteredIterator as FilteredReader;
21
-
22 20
 use CSVelte\Exception\EndOfFileException;
23 21
 
24 22
 use function
Please login to merge, or discard this patch.
src/CSVelte/Collection/AbstractCollection.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 
16 16
 use ArrayAccess;
17 17
 use ArrayIterator;
18
-use BadMethodCallException;
19 18
 use Countable;
20 19
 use InvalidArgumentException;
21 20
 use Iterator;
Please login to merge, or discard this patch.
src/CSVelte/functions.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use CSVelte\Contract\Readable;
20 20
 use CSVelte\Contract\Writable;
21 21
 use CSVelte\Contract\Seekable;
22
-
23 22
 use CSVelte\Exception\NotYetImplementedException;
24 23
 
25 24
 /**
Please login to merge, or discard this patch.
src/CSVelte/Taster.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -14,13 +14,10 @@
 block discarded – undo
14 14
 namespace CSVelte;
15 15
 
16 16
 use CSVelte\Collection\AbstractCollection;
17
-use CSVelte\Collection\Collection;
18
-use CSVelte\Collection\MultiCollection;
19 17
 use CSVelte\Collection\NumericCollection;
20 18
 use CSVelte\Collection\TabularCollection;
21 19
 use CSVelte\Contract\Streamable;
22 20
 use CSVelte\Exception\TasterException;
23
-
24 21
 use DateTime;
25 22
 use Exception;
26 23
 use OutOfBoundsException;
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,9 @@
 block discarded – undo
234 234
         // callback to build the aforementioned collection
235 235
         $buildTypes = function ($line, $line_no) use ($types, $delim, $eol) {
236 236
 
237
-            if ($line_no > 2) return;
237
+            if ($line_no > 2) {
238
+                return;
239
+            }
238 240
             $line = str_replace(self::PLACEHOLDER_NEWLINE, $eol, $line);
239 241
             $getType = function ($field, $colpos) use ($types, $line, $line_no, $delim) {
240 242
                 $field = str_replace(self::PLACEHOLDER_DELIM, $delim, $field);
Please login to merge, or discard this patch.