@@ -210,7 +210,7 @@ |
||
| 210 | 210 | protected function getItemRow(array $item) |
| 211 | 211 | { |
| 212 | 212 | return array_map( |
| 213 | - function ($key) use ($item) { |
|
| 213 | + function($key) use ($item) { |
|
| 214 | 214 | return isset($item[$key]) ? $item[$key] : ''; |
| 215 | 215 | }, |
| 216 | 216 | $this->headers |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | protected function initializeAttributeTypes() |
| 105 | 105 | { |
| 106 | 106 | $xls = $this->getInnerIterator()->getExcelObject(); |
| 107 | - $parserOptions = isset($this->options['parser_options']) ? $this->options['parser_options'] : [] ; |
|
| 107 | + $parserOptions = isset($this->options['parser_options']) ? $this->options['parser_options'] : []; |
|
| 108 | 108 | $this->attributeTypes = array(); |
| 109 | 109 | $attributeWorkseet = $xls->getWorksheetIndex('attribute_types'); |
| 110 | 110 | if (false === $attributeWorkseet) { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | protected function getChannelData() |
| 28 | 28 | { |
| 29 | 29 | $xls = $this->getExcelObject(); |
| 30 | - $data = [ 'attributes' => [] ]; |
|
| 30 | + $data = ['attributes' => []]; |
|
| 31 | 31 | $attributeLabels = []; |
| 32 | 32 | $channelLabels = []; |
| 33 | 33 | $labelLocales = []; |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | $xls = $this->getExcelObject(); |
| 75 | 75 | $this->worksheetIterator = new \CallbackFilterIterator( |
| 76 | 76 | new \ArrayIterator($xls->getWorksheets()), |
| 77 | - function ($title, $key) use ($xls) { |
|
| 77 | + function($title, $key) use ($xls) { |
|
| 78 | 78 | return $this->isReadableWorksheet($title); |
| 79 | 79 | |
| 80 | 80 | return false; |
@@ -21,12 +21,12 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * @staticvar string XML template for one cell |
| 23 | 23 | */ |
| 24 | - const CELL_TEMPLATE='<Cell><Data ss:Type="{{type}}">{{data}}</Data></Cell>'; |
|
| 24 | + const CELL_TEMPLATE = '<Cell><Data ss:Type="{{type}}">{{data}}</Data></Cell>'; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * @staticvar string XML template for one row |
| 28 | 28 | */ |
| 29 | - const ROW_TEMPLATE='<Row>{{cells}}</Row>'; |
|
| 29 | + const ROW_TEMPLATE = '<Row>{{cells}}</Row>'; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * {@inheritdoc} |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - return strtr(static::ROW_TEMPLATE, [ '{{cells}}' => $cells ]); |
|
| 47 | + return strtr(static::ROW_TEMPLATE, ['{{cells}}' => $cells]); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |