| @@ -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 | } | 
| @@ -36,7 +36,7 @@ | ||
| 36 | 36 |          foreach (file($csvPath) as $line) { | 
| 37 | 37 | if ($line[0] == 'f') continue; | 
| 38 | 38 |              $widths = explode(',', trim($line)); | 
| 39 | -            if (count(range(33, 126)) + 3 == count($widths)) { | |
| 39 | +            if (count(range(33, 126))+3 == count($widths)) { | |
| 40 | 40 | $fontName = array_shift($widths); | 
| 41 | 41 | $fontSize = array_shift($widths); | 
| 42 | 42 | $boldMulti = array_shift($widths); | 
| @@ -34,7 +34,9 @@ | ||
| 34 | 34 | public static function loadWidthsFromCsv($csvPath) | 
| 35 | 35 |      { | 
| 36 | 36 |          foreach (file($csvPath) as $line) { | 
| 37 | - if ($line[0] == 'f') continue; | |
| 37 | +            if ($line[0] == 'f') { | |
| 38 | + continue; | |
| 39 | + } | |
| 38 | 40 |              $widths = explode(',', trim($line)); | 
| 39 | 41 |              if (count(range(33, 126)) + 3 == count($widths)) { | 
| 40 | 42 | $fontName = array_shift($widths); | 
| @@ -94,7 +94,7 @@ discard block | ||
| 94 | 94 |              throw new \InvalidArgumentException('Array must contain integer keys and numeric values only!'); | 
| 95 | 95 | } | 
| 96 | 96 | |
| 97 | - $this->columnWidths = $columnWidths + $this->columnWidths; | |
| 97 | + $this->columnWidths = $columnWidths+$this->columnWidths; | |
| 98 | 98 | } | 
| 99 | 99 | |
| 100 | 100 | /** | 
| @@ -114,7 +114,7 @@ discard block | ||
| 114 | 114 | */ | 
| 115 | 115 | public function getDimensionUpperBound() | 
| 116 | 116 |      { | 
| 117 | - return $this->cellBuilder->getCellId($this->maxRowWidth, $this->rowIndex - 1); | |
| 117 | + return $this->cellBuilder->getCellId($this->maxRowWidth, $this->rowIndex-1); | |
| 118 | 118 | } | 
| 119 | 119 | |
| 120 | 120 | /** | 
| @@ -212,6 +212,6 @@ discard block | ||
| 212 | 212 |          ) { | 
| 213 | 213 | return ''; | 
| 214 | 214 | } | 
| 215 | - return sprintf(SheetXml::FREEZE_PANE_XML, array_pop($m) - 1, $this->freezePaneId); | |
| 215 | + return sprintf(SheetXml::FREEZE_PANE_XML, array_pop($m)-1, $this->freezePaneId); | |
| 216 | 216 | } | 
| 217 | 217 | } |