Test Failed
Push — rendered-cell-sizes ( 8ba9d2 )
by Stefan
03:31
created
src/OneSheet/Size/SizeCalculator.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
     {
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
 
Please login to merge, or discard this patch.
src/OneSheet/Sheet.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 );
Please login to merge, or discard this patch.