@@ -102,10 +102,10 @@ |
||
102 | 102 | /** |
103 | 103 | * Creates a worksheet with the given name |
104 | 104 | * |
105 | - * @param type $name |
|
105 | + * @param string $name |
|
106 | 106 | * @param array $data |
107 | 107 | * |
108 | - * @return array \PHPExcelWorksheet |
|
108 | + * @return \PHPExcel_Worksheet \PHPExcelWorksheet |
|
109 | 109 | */ |
110 | 110 | protected function createWorksheet($name, array $data) |
111 | 111 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Pim\Bundle\ExcelConnectorBundle\Writer; |
4 | 4 | |
5 | -use Akeneo\Bundle\BatchBundle\Entity\StepExecution; |
|
6 | 5 | use Pim\Bundle\BaseConnectorBundle\Writer\File\FileWriter; |
7 | 6 | use Symfony\Component\Serializer\Encoder\EncoderInterface; |
8 | 7 | use Symfony\Component\Validator\Constraints as Assert; |
@@ -220,7 +220,6 @@ |
||
220 | 220 | /** |
221 | 221 | * Writes the headers |
222 | 222 | * |
223 | - * @param array $csv |
|
224 | 223 | */ |
225 | 224 | protected function writeHeaders() |
226 | 225 | { |
@@ -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 = []; |
@@ -229,7 +229,7 @@ |
||
229 | 229 | */ |
230 | 230 | protected function createIterator($worksheetIndex) |
231 | 231 | { |
232 | - return $this->getExcelObject()->createRowIterator($worksheetIndex, $this->options['parser_options']); |
|
232 | + return $this->getExcelObject()->createRowIterator($worksheetIndex, $this->options['parser_options']); |
|
233 | 233 | } |
234 | 234 | |
235 | 235 | /** |
@@ -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 | /** |