@@ -24,10 +24,10 @@ |
||
| 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 | |
@@ -42,7 +42,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |