@@ -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); |
@@ -193,7 +193,9 @@ |
||
| 193 | 193 | $rows = new Collection; |
| 194 | 194 | |
| 195 | 195 | foreach ($this->reader->getSheetIterator() as $index => $sheet) { |
| 196 | - if ($index !== $this->sheet) continue; |
|
| 196 | + if ($index !== $this->sheet) { |
|
| 197 | + continue; |
|
| 198 | + } |
|
| 197 | 199 | |
| 198 | 200 | foreach ($sheet->getRowIterator() as $row) { |
| 199 | 201 | $rows->push($this->parser->transform($row)); |
@@ -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 | |
@@ -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); |