@@ -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 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | throw new \InvalidArgumentException('Array must contain integer keys and numeric values only!'); |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | - $this->columnWidths = $columnWidths + $this->columnWidths; |
|
| 108 | + $this->columnWidths = $columnWidths+$this->columnWidths; |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | public function getDimensionUpperBound() |
| 127 | 127 | { |
| 128 | - return $this->cellBuilder->getCellId($this->maxColumnCount, $this->rowIndex - 1); |
|
| 128 | + return $this->cellBuilder->getCellId($this->maxColumnCount, $this->rowIndex-1); |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
@@ -215,6 +215,6 @@ discard block |
||
| 215 | 215 | ) { |
| 216 | 216 | return ''; |
| 217 | 217 | } |
| 218 | - return sprintf(SheetXml::FREEZE_PANE_XML, array_pop($m) - 1, $this->freezePaneCellId); |
|
| 218 | + return sprintf(SheetXml::FREEZE_PANE_XML, array_pop($m)-1, $this->freezePaneCellId); |
|
| 219 | 219 | } |
| 220 | 220 | } |