@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function getCellWidth($value, Font $font) |
| 43 | 43 | { |
| 44 | - $width = 0.3 + (0.05 * $font->getSize()); |
|
| 44 | + $width = 0.3+(0.05 * $font->getSize()); |
|
| 45 | 45 | |
| 46 | 46 | foreach ($this->getSingleCharacterArray($value) as $character) { |
| 47 | 47 | if (isset($this->characterSizes[$character])) { |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | * Registers a simple autoload closure. Require this file, |
| 4 | 4 | * if onesheet was _not_ installed via composer. |
| 5 | 5 | */ |
| 6 | -spl_autoload_register(function ($class) { |
|
| 6 | +spl_autoload_register(function($class) { |
|
| 7 | 7 | // skip right away, if its not OneSheet |
| 8 | 8 | if (0 !== strpos($class, 'OneSheet')) { |
| 9 | 9 | return; |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | throw new \InvalidArgumentException('Array must contain integer keys and numeric values only!'); |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - $this->columnWidths = $columnWidths + $this->columnWidths; |
|
| 123 | + $this->columnWidths = $columnWidths+$this->columnWidths; |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | public function getDimensionXml() |
| 251 | 251 | { |
| 252 | 252 | return sprintf(SheetXml::DIMENSION_XML, |
| 253 | - $this->cellBuilder->getCellId($this->maxColumnCount - 1, $this->rowIndex - 1) |
|
| 253 | + $this->cellBuilder->getCellId($this->maxColumnCount-1, $this->rowIndex-1) |
|
| 254 | 254 | ); |
| 255 | 255 | } |
| 256 | 256 | |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | return ''; |
| 266 | 266 | } |
| 267 | 267 | |
| 268 | - return sprintf(SheetXml::SHEETVIEWS_XML, array_pop($m) - 1, $this->freezePaneCellId); |
|
| 268 | + return sprintf(SheetXml::SHEETVIEWS_XML, array_pop($m)-1, $this->freezePaneCellId); |
|
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 | /** |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | |
| 281 | 281 | if (0 !== count($this->getColumnWidths())) { |
| 282 | 282 | foreach ($this->getColumnWidths() as $columnIndex => $columnWidth) { |
| 283 | - $columnNumber = $columnIndex + 1; |
|
| 283 | + $columnNumber = $columnIndex+1; |
|
| 284 | 284 | $colsXml .= sprintf(SheetXml::COLUMN_XML, $columnNumber, $columnNumber, $columnWidth); |
| 285 | 285 | } |
| 286 | 286 | $colsXml = sprintf('<cols>%s</cols>', $colsXml); |
@@ -86,10 +86,10 @@ |
||
| 86 | 86 | public function getCellId($cellNumber, $rowNumber = null) |
| 87 | 87 | { |
| 88 | 88 | if ($cellNumber / 26 < 1) { |
| 89 | - return chr(65 + $cellNumber) . $rowNumber; |
|
| 89 | + return chr(65+$cellNumber) . $rowNumber; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - return $this->getCellId((int)($cellNumber / 26) - 1) . chr(65 + $cellNumber % 26) . $rowNumber; |
|
| 92 | + return $this->getCellId((int)($cellNumber / 26)-1) . chr(65+$cellNumber % 26) . $rowNumber; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |