@@ -86,7 +86,7 @@ |
||
| 86 | 86 | { |
| 87 | 87 | if (isset($this->fonts[$fontName])) { |
| 88 | 88 | $box = imageftbbox($fontSize, 0, $this->fonts[$fontName], str_repeat($char, 100)); |
| 89 | - $width = abs($box[4] - $box[0]) / 6.73 / 100; |
|
| 89 | + $width = abs($box[4]-$box[0]) / 6.73 / 100; |
|
| 90 | 90 | return round($width, 3); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | throw new \InvalidArgumentException('Array must contain integer keys and numeric values only!'); |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - $this->columnWidths = $columnWidths + $this->columnWidths; |
|
| 124 | + $this->columnWidths = $columnWidths+$this->columnWidths; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | public function getDimensionXml() |
| 244 | 244 | { |
| 245 | 245 | return sprintf(SheetXml::DIMENSION_XML, |
| 246 | - $this->cellBuilder->getCellId($this->maxColumnCount - 1, $this->rowIndex - 1) |
|
| 246 | + $this->cellBuilder->getCellId($this->maxColumnCount-1, $this->rowIndex-1) |
|
| 247 | 247 | ); |
| 248 | 248 | } |
| 249 | 249 | |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | return ''; |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | - return sprintf(SheetXml::SHEETVIEWS_XML, array_pop($m) - 1, $this->freezePaneCellId); |
|
| 261 | + return sprintf(SheetXml::SHEETVIEWS_XML, array_pop($m)-1, $this->freezePaneCellId); |
|
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | /** |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | $colsXml = ''; |
| 274 | 274 | if (0 !== count($this->getColumnWidths())) { |
| 275 | 275 | foreach ($this->getColumnWidths() as $columnIndex => $columnWidth) { |
| 276 | - $columnNumber = $columnIndex + 1; |
|
| 276 | + $columnNumber = $columnIndex+1; |
|
| 277 | 277 | $colsXml .= sprintf( |
| 278 | 278 | SheetXml::COLUMN_XML, $columnNumber, $columnNumber, number_format($columnWidth, 3, '.', '') |
| 279 | 279 | ); |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | |
| 149 | 149 | if ($stringLength > 0) { |
| 150 | 150 | $position = ftell($fontHandle); |
| 151 | - fseek($fontHandle, $offset + $stringOffset + $storageOffset, SEEK_SET); |
|
| 151 | + fseek($fontHandle, $offset+$stringOffset+$storageOffset, SEEK_SET); |
|
| 152 | 152 | |
| 153 | 153 | $testValue = fread($fontHandle, $stringLength); |
| 154 | 154 | $this->extractCandidate($nameId, $testValue); |