@@ -33,6 +33,6 @@ |
||
33 | 33 | */ |
34 | 34 | public function getHeader() |
35 | 35 | { |
36 | - return []; |
|
36 | + return [ ]; |
|
37 | 37 | } |
38 | 38 | } |
@@ -164,8 +164,9 @@ |
||
164 | 164 | */ |
165 | 165 | protected function makeRows() |
166 | 166 | { |
167 | - if ( ! empty($headerRow = $this->serializer->getHeader())) |
|
168 | - $this->writer->addRow($headerRow); |
|
167 | + if ( ! empty($headerRow = $this->serializer->getHeader())) { |
|
168 | + $this->writer->addRow($headerRow); |
|
169 | + } |
|
169 | 170 | |
170 | 171 | foreach ($this->data as $record) { |
171 | 172 | $this->writer->addRow( |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | |
29 | 29 | /** @var array */ |
30 | - protected $data = []; |
|
30 | + protected $data = [ ]; |
|
31 | 31 | |
32 | 32 | /** @var string */ |
33 | 33 | protected $type; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @param array $options |
50 | 50 | */ |
51 | - public function __construct(array $options = []) |
|
51 | + public function __construct(array $options = [ ]) |
|
52 | 52 | { |
53 | 53 | $this->setSerializer(new DefaultSerializer); |
54 | 54 | $this->setOptions($options); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @var bool |
29 | 29 | */ |
30 | - protected $defer = true; |
|
30 | + protected $defer = true; |
|
31 | 31 | |
32 | 32 | /* ----------------------------------------------------------------- |
33 | 33 | | Main Methods |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | private function registerExporterManager() |
78 | 78 | { |
79 | - $this->singleton(Contracts\ExporterManager::class, function ($app) { |
|
79 | + $this->singleton(Contracts\ExporterManager::class, function($app) { |
|
80 | 80 | return new ExporterManager($app); |
81 | 81 | }); |
82 | 82 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | private function registerImporterManager() |
88 | 88 | { |
89 | - $this->singleton(Contracts\ImporterManager::class, function ($app) { |
|
89 | + $this->singleton(Contracts\ImporterManager::class, function($app) { |
|
90 | 90 | return new ImporterManager($app); |
91 | 91 | }); |
92 | 92 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | protected function config() |
24 | 24 | { |
25 | - return $this->app['config']; |
|
25 | + return $this->app[ 'config' ]; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -73,6 +73,6 @@ discard block |
||
73 | 73 | */ |
74 | 74 | protected function getDriverOptions($driver) |
75 | 75 | { |
76 | - return $this->config()->get("excel.drivers.$driver.options", []); |
|
76 | + return $this->config()->get("excel.drivers.$driver.options", [ ]); |
|
77 | 77 | } |
78 | 78 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param array $options |
53 | 53 | */ |
54 | - public function __construct(array $options = []) |
|
54 | + public function __construct(array $options = [ ]) |
|
55 | 55 | { |
56 | 56 | $this->setParser(new DefaultParser); |
57 | 57 | $this->setOptions($options); |
@@ -182,8 +182,7 @@ |
||
182 | 182 | } |
183 | 183 | |
184 | 184 | $sheets->put($index, $rows); |
185 | - } |
|
186 | - elseif ($sheetIndex === $index) { |
|
185 | + } elseif ($sheetIndex === $index) { |
|
187 | 186 | foreach ($sheet->getRowIterator() as $row) { |
188 | 187 | $sheets->push($this->parser->transform($row)); |
189 | 188 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | | ----------------------------------------------------------------- |
16 | 16 | */ |
17 | 17 | |
18 | - protected $options = []; |
|
18 | + protected $options = [ ]; |
|
19 | 19 | |
20 | 20 | /* ----------------------------------------------------------------- |
21 | 21 | | Main Methods |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public function setOption($key, $value) |
71 | 71 | { |
72 | - $this->options[$key] = $value; |
|
72 | + $this->options[ $key ] = $value; |
|
73 | 73 | |
74 | 74 | return $this; |
75 | 75 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * |
82 | 82 | * @return self |
83 | 83 | */ |
84 | - public function resetOptions(array $options = []) |
|
84 | + public function resetOptions(array $options = [ ]) |
|
85 | 85 | { |
86 | 86 | $this->options = $options; |
87 | 87 |