Passed
Branch refactor/164-removeoldcollecti... (61eb5d)
by Luke
02:41
created
src/CSVelte/Table/AbstractRow.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     public function __construct($fields)
57 57
     {
58 58
         $this->setFields($fields)
59
-             ->rewind();
59
+                ->rewind();
60 60
     }
61 61
 
62 62
     protected function setFields($fields)
Please login to merge, or discard this patch.
src/CSVelte/Reader.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@
 block discarded – undo
91 91
     public function __construct($input, $flavor = null)
92 92
     {
93 93
         $this->setSource($input)
94
-             ->setFlavor($flavor)
95
-             ->rewind();
94
+                ->setFlavor($flavor)
95
+                ->rewind();
96 96
     }
97 97
 
98 98
     /**
Please login to merge, or discard this patch.
src/CSVelte/Exception/HeaderException.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 if (if $file->hasHeader()) {
20 20
     $header = $file->getHeader()
21 21
 }
22
-
23 22
  * you can instead simply call $header->getHeader() and handle this exception if
24 23
  * said file has no header
25 24
  *
Please login to merge, or discard this patch.
src/CSVelte/IO/StreamResource.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -185,10 +185,10 @@  discard block
 block discarded – undo
185 185
 
186 186
         // ok we're opening a new stream resource handle
187 187
         $this->setUri($uri)
188
-             ->setMode($mode)
189
-             ->setLazy($lazy)
190
-             ->setUseIncludePath($use_include_path)
191
-             ->setContext($context_options, $context_params);
188
+                ->setMode($mode)
189
+                ->setLazy($lazy)
190
+                ->setUseIncludePath($use_include_path)
191
+                ->setContext($context_options, $context_params);
192 192
         if (!$this->isLazy()) {
193 193
             $this->connect();
194 194
         }
@@ -351,9 +351,9 @@  discard block
 block discarded – undo
351 351
 
352 352
         $this->flag = '';
353 353
         $this->setBaseMode($base)
354
-             ->setIsPlus($plus == '+')
355
-             ->setIsText($flag == 't')
356
-             ->setIsBinary($flag == 'b');
354
+                ->setIsPlus($plus == '+')
355
+                ->setIsText($flag == 't')
356
+                ->setIsBinary($flag == 'b');
357 357
 
358 358
         return $this;
359 359
     }
Please login to merge, or discard this patch.
src/CSVelte/Taster.php 1 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.