@@ -75,10 +75,10 @@ |
||
75 | 75 | public function getCellId($cellNumber, $rowNumber = null) |
76 | 76 | { |
77 | 77 | if ($cellNumber / 26 < 1) { |
78 | - return chr(65 + $cellNumber) . $rowNumber; |
|
78 | + return chr(65+$cellNumber) . $rowNumber; |
|
79 | 79 | } |
80 | 80 | |
81 | - return $this->getCellId(floor($cellNumber / 26) - 1) . chr(65 + $cellNumber % 26) . $rowNumber; |
|
81 | + return $this->getCellId(floor($cellNumber / 26)-1) . chr(65+$cellNumber % 26) . $rowNumber; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -86,7 +86,7 @@ |
||
86 | 86 | $this->sheetFile->fwrite('<cols>'); |
87 | 87 | foreach ($this->sheet->getColumnWidths() as $columnNumber => $columnWidth) { |
88 | 88 | $this->sheetFile->fwrite( |
89 | - sprintf(SheetXml::COLUMN_XML, ($columnNumber + 1), ($columnNumber + 1), |
|
89 | + sprintf(SheetXml::COLUMN_XML, ($columnNumber+1), ($columnNumber+1), |
|
90 | 90 | $columnWidth) |
91 | 91 | ); |
92 | 92 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | throw new \InvalidArgumentException('Array must contain integer keys and numeric values only!'); |
120 | 120 | } |
121 | 121 | |
122 | - $this->columnWidths = $columnWidths + $this->columnWidths; |
|
122 | + $this->columnWidths = $columnWidths+$this->columnWidths; |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | */ |
143 | 143 | public function getColumnWidths() |
144 | 144 | { |
145 | - return array_map(function ($width) { |
|
145 | + return array_map(function($width) { |
|
146 | 146 | if ($this->maxColumnWidth && $this->maxColumnWidth < $width) { |
147 | 147 | return $this->maxColumnWidth; |
148 | 148 | } elseif ($this->minColumnWidth && $this->minColumnWidth > $width) { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function getDimensionUpperBound() |
160 | 160 | { |
161 | - return $this->cellBuilder->getCellId($this->maxColumnCount, $this->rowIndex - 1); |
|
161 | + return $this->cellBuilder->getCellId($this->maxColumnCount, $this->rowIndex-1); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
@@ -248,6 +248,6 @@ discard block |
||
248 | 248 | ) { |
249 | 249 | return ''; |
250 | 250 | } |
251 | - return sprintf(SheetXml::FREEZE_PANE_XML, array_pop($m) - 1, $this->freezePaneCellId); |
|
251 | + return sprintf(SheetXml::FREEZE_PANE_XML, array_pop($m)-1, $this->freezePaneCellId); |
|
252 | 252 | } |
253 | 253 | } |