Completed
Push — master ( 84ee67...48a23c )
by Stefan
02:40
created
src/OneSheet/CellBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,10 +75,10 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/OneSheet/Finalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/OneSheet/Sheet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             throw new \InvalidArgumentException('Array must contain integer keys and numeric values only!');
106 106
         }
107 107
 
108
-        $this->columnWidths = $columnWidths + $this->columnWidths;
108
+        $this->columnWidths = $columnWidths+$this->columnWidths;
109 109
     }
110 110
 
111 111
     /**
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function getDimensionUpperBound()
127 127
     {
128
-        return $this->cellBuilder->getCellId($this->maxColumnCount, $this->rowIndex - 1);
128
+        return $this->cellBuilder->getCellId($this->maxColumnCount, $this->rowIndex-1);
129 129
     }
130 130
 
131 131
     /**
@@ -215,6 +215,6 @@  discard block
 block discarded – undo
215 215
         ) {
216 216
             return '';
217 217
         }
218
-        return sprintf(SheetXml::FREEZE_PANE_XML, array_pop($m) - 1, $this->freezePaneCellId);
218
+        return sprintf(SheetXml::FREEZE_PANE_XML, array_pop($m)-1, $this->freezePaneCellId);
219 219
     }
220 220
 }
Please login to merge, or discard this patch.
src/OneSheet/Size/SizeCalculator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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])) {
Please login to merge, or discard this patch.