@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * @param array $rows |
| 62 | - * @param Style|int $style |
|
| 62 | + * @param integer $style |
|
| 63 | 63 | */ |
| 64 | 64 | public function addRows(array $rows, $style = 0) |
| 65 | 65 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * @param array $row |
| 73 | - * @param Style|int $style |
|
| 73 | + * @param integer $style |
|
| 74 | 74 | */ |
| 75 | 75 | public function addRow(array $row, $style = 0) |
| 76 | 76 | { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * Load or register a given style. |
| 83 | 83 | * |
| 84 | - * @param Style|int $style |
|
| 84 | + * @param integer $style |
|
| 85 | 85 | * @return Style |
| 86 | 86 | */ |
| 87 | 87 | private function loadOrRegisterStyle($style = 0) |
@@ -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 | } |