Passed
Branch refactor/164-removeoldcollecti... (61eb5d)
by Luke
02:41
created
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/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.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -514,12 +514,12 @@  discard block
 block discarded – undo
514 514
                 return $this->guessDelimByDistribution($decision, $eol);
515 515
             } catch (TasterException $e) {
516 516
                 // if somehow we STILL can't come to a consensus, then fall back to a
517
-                 // "preferred delimiters" list...
518
-                 foreach ($this->delims as $key => $val) {
519
-                     if ($delim = array_search($val, $decision)) {
520
-                         return $delim;
521
-                     }
522
-                 }
517
+                    // "preferred delimiters" list...
518
+                    foreach ($this->delims as $key => $val) {
519
+                        if ($delim = array_search($val, $decision)) {
520
+                            return $delim;
521
+                        }
522
+                    }
523 523
             }
524 524
         }
525 525
 
@@ -589,8 +589,8 @@  discard block
 block discarded – undo
589 589
             })->map(function ($dists) {
590 590
                 return $dists->average();
591 591
             })->sort()
592
-              ->reverse()
593
-              ->getKeyAtPosition(0)];
592
+                ->reverse()
593
+                ->getKeyAtPosition(0)];
594 594
         } catch (Exception $e) {
595 595
             throw new TasterException('delimiter cannot be determined by distribution', TasterException::ERR_DELIMITER);
596 596
         }
Please login to merge, or discard this patch.