Passed
Push — master ( 01c55b...7c1093 )
by Luke
03:54 queued 01:43
created
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/Taster.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -692,7 +692,7 @@
 block discarded – undo
692 692
      *
693 693
      * @param string $data The data to check
694 694
      *
695
-     * @return bool Whether the data is quoted or not
695
+     * @return integer Whether the data is quoted or not
696 696
      */
697 697
     protected function isQuoted($data)
698 698
     {
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -513,12 +513,12 @@  discard block
 block discarded – undo
513 513
                 return $this->guessDelimByDistribution($decision, $eol);
514 514
             } catch (TasterException $e) {
515 515
                 // if somehow we STILL can't come to a consensus, then fall back to a
516
-                 // "preferred delimiters" list...
517
-                 foreach ($this->delims as $key => $chr) {
518
-                     if (collect($decision)->contains($chr)) {
519
-                         return $chr;
520
-                     }
521
-                 }
516
+                    // "preferred delimiters" list...
517
+                    foreach ($this->delims as $key => $chr) {
518
+                        if (collect($decision)->contains($chr)) {
519
+                            return $chr;
520
+                        }
521
+                    }
522 522
             }
523 523
         }
524 524
 
@@ -588,8 +588,8 @@  discard block
 block discarded – undo
588 588
             })->map(function ($dists) {
589 589
                 return $dists->average();
590 590
             })->sort()
591
-              ->reverse()
592
-              ->getKeyAtPosition(0)];
591
+                ->reverse()
592
+                ->getKeyAtPosition(0)];
593 593
         } catch (Exception $e) {
594 594
             throw new TasterException('delimiter cannot be determined by distribution', TasterException::ERR_DELIMITER);
595 595
         }
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/Collection/AbstractCollection.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      * also optionally throw an OutOfBoundsException if no value is found.
284 284
      *
285 285
      * @param mixed $index   The index of the data you want to get
286
-     * @param mixed $default The default value to return if none available
286
+     * @param null|integer $default The default value to return if none available
287 287
      * @param bool  $throw   True if you want an exception to be thrown if no data found at $index
288 288
      *
289 289
      * @throws OutOfBoundsException If $throw is true and $index isn't found
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
      *
563 563
      * @param array $items Any number of arguments will be pushed onto the
564 564
      *
565
-     * @return mixed The first item in this collection
565
+     * @return AbstractCollection The first item in this collection
566 566
      */
567 567
     public function push(...$items)
568 568
     {
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
      *
577 577
      * Returns a new collection with $items added.
578 578
      *
579
-     * @return mixed The first item in this collection
579
+     * @return AbstractCollection The first item in this collection
580 580
      */
581 581
     public function unshift(...$items)
582 582
     {
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
     /**
639 639
      * Iterate over each item that matches criteria in callback.
640 640
      *
641
-     * @param Closure|callable $callback A callback to use
641
+     * @param Closure $callback A callback to use
642 642
      * @param object           $bindTo   The object to bind to
643 643
      *
644 644
      * @return AbstractCollection
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
     /**
756 756
      * Returns collection in reverse order.
757 757
      *
758
-     * @param null $preserveKeys True if you want to preserve collection's keys
758
+     * @param boolean $preserveKeys True if you want to preserve collection's keys
759 759
      *
760 760
      * @return AbstractCollection This collection in reverse order.
761 761
      */
Please login to merge, or discard this patch.
src/CSVelte/Table/AbstractRow.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     public function __construct($fields)
62 62
     {
63 63
         $this->setFields($fields)
64
-             ->rewind();
64
+                ->rewind();
65 65
     }
66 66
 
67 67
     /**
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
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
  if (if $file->hasHeader()) {
22 22
  $header = $file->getHeader()
23 23
  }
24
-
25 24
  * you can instead simply call $header->getHeader() and handle this exception if
26 25
  * said file has no header
27 26
  *
Please login to merge, or discard this patch.