| @@ -99,7 +99,7 @@ | ||
| 99 | 99 | */ | 
| 100 | 100 | public function getDimensionUpperBound() | 
| 101 | 101 |      { | 
| 102 | - return $this->cellBuilder->getCellId($this->maxRowWidth, $this->rowIndex - 1); | |
| 102 | + return $this->cellBuilder->getCellId($this->maxRowWidth, $this->rowIndex-1); | |
| 103 | 103 | } | 
| 104 | 104 | |
| 105 | 105 | /** | 
| @@ -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 | /** | 
| @@ -85,7 +85,7 @@ | ||
| 85 | 85 |          if (0 < count($this->sheet->getCellWidths())) { | 
| 86 | 86 |              $this->sheetFile->fwrite('<cols>'); | 
| 87 | 87 |              foreach ($this->sheet->getCellWidths() as $columnNumber => $columnWidth) { | 
| 88 | - $this->sheetFile->fwrite(sprintf(SheetXml::COLUMN_XML, ($columnNumber + 1), ($columnNumber + 1), | |
| 88 | + $this->sheetFile->fwrite(sprintf(SheetXml::COLUMN_XML, ($columnNumber+1), ($columnNumber+1), | |
| 89 | 89 | $columnWidth)); | 
| 90 | 90 | } | 
| 91 | 91 |              $this->sheetFile->fwrite('</cols>'); | 
| @@ -34,7 +34,7 @@ | ||
| 34 | 34 |      { | 
| 35 | 35 |          foreach (file($csvPath) as $line) { | 
| 36 | 36 |              $widths = explode(',', trim($line)); | 
| 37 | -            if (count(range(33, 126)) + 2 == count($widths)) { | |
| 37 | +            if (count(range(33, 126))+2 == count($widths)) { | |
| 38 | 38 | self::$widths[array_shift($widths)][array_shift($widths)] = | 
| 39 | 39 |                      array_combine(array_map('chr', range(33, 126)), $widths); | 
| 40 | 40 | } | 
| @@ -59,7 +59,7 @@ discard block | ||
| 59 | 59 | |
| 60 | 60 | /** | 
| 61 | 61 | * @param array(array) $rows | 
| 62 | - * @param Style|int $style | |
| 62 | + * @param integer $style | |
| 63 | 63 | */ | 
| 64 | 64 | public function addRows(array $rows, $style = 0) | 
| 65 | 65 |      { | 
| @@ -72,7 +72,7 @@ discard block | ||
| 72 | 72 | |
| 73 | 73 | /** | 
| 74 | 74 | * @param array $row | 
| 75 | - * @param Style|int $style | |
| 75 | + * @param integer $style | |
| 76 | 76 | */ | 
| 77 | 77 | public function addRow(array $row, $style = 0) | 
| 78 | 78 |      { | 
| @@ -83,7 +83,7 @@ discard block | ||
| 83 | 83 | /** | 
| 84 | 84 | * Load or register a given style. | 
| 85 | 85 | * | 
| 86 | - * @param Style|int $style | |
| 86 | + * @param integer $style | |
| 87 | 87 | * @return Style | 
| 88 | 88 | */ | 
| 89 | 89 | private function loadOrRegisterStyle($style = 0) |