Passed
Pull Request — master (#12)
by Joao
01:34
created
src/RowOutput.php 2 patches
Switch Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
         $data = $this->fieldList[$field];
25 25
 
26 26
         switch ($data[0]) {
27
-            case self::FORMAT:
28
-                return $this->formatPattern($row, $field, $data[1]);
29
-            case self::CUSTOM:
30
-                return $this->formatCustom($row, $field, $data[1]);
27
+        case self::FORMAT:
28
+            return $this->formatPattern($row, $field, $data[1]);
29
+        case self::CUSTOM:
30
+            return $this->formatCustom($row, $field, $data[1]);
31 31
         }
32 32
     }
33 33
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $rowParsed = $row->toArray();
44 44
         foreach ($rowParsed as $key => $value) {
45
-            $rowParsed['{' . $key . '}'] = $value;
45
+            $rowParsed['{'.$key.'}'] = $value;
46 46
             unset($rowParsed[$key]);
47 47
         }
48 48
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function addFormat($field, $pattern)
63 63
     {
64
-        $this->fieldList[$field] = [ self::FORMAT,  $pattern ];
64
+        $this->fieldList[$field] = [self::FORMAT, $pattern];
65 65
         return $this;
66 66
     }
67 67
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function addCustomFormat($field, Closure $closure)
76 76
     {
77
-        $this->fieldList[$field] = [ self::CUSTOM, $closure ];
77
+        $this->fieldList[$field] = [self::CUSTOM, $closure];
78 78
         return $this;
79 79
     }
80 80
 }
81 81
\ No newline at end of file
Please login to merge, or discard this patch.