Passed
Push — writer-and-finalizer-fixes ( 816aaf )
by Stefan
03:15
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/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.
autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * Registers a simple autoload closure. Require this file,
4 4
  * if onesheet was _not_ installed via composer.
5 5
  */
6
-spl_autoload_register(function ($class) {
6
+spl_autoload_register(function($class) {
7 7
     // skip right away, if its not OneSheet
8 8
     if (0 !== strpos($class, 'OneSheet')) {
9 9
         return;
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
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             throw new \InvalidArgumentException('Array must contain integer keys and numeric values only!');
121 121
         }
122 122
 
123
-        $this->columnWidths = $columnWidths + $this->columnWidths;
123
+        $this->columnWidths = $columnWidths+$this->columnWidths;
124 124
     }
125 125
 
126 126
     /**
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     public function getDimensionXml()
251 251
     {
252 252
         return sprintf(SheetXml::DIMENSION_XML,
253
-            $this->cellBuilder->getCellId($this->maxColumnCount - 1, $this->rowIndex - 1)
253
+            $this->cellBuilder->getCellId($this->maxColumnCount-1, $this->rowIndex-1)
254 254
         );
255 255
     }
256 256
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
             return '';
266 266
         }
267 267
 
268
-        return sprintf(SheetXml::SHEETVIEWS_XML, array_pop($m) - 1, $this->freezePaneCellId);
268
+        return sprintf(SheetXml::SHEETVIEWS_XML, array_pop($m)-1, $this->freezePaneCellId);
269 269
     }
270 270
 
271 271
     /**
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 
281 281
         if (0 !== count($this->getColumnWidths())) {
282 282
             foreach ($this->getColumnWidths() as $columnIndex => $columnWidth) {
283
-                $columnNumber = $columnIndex + 1;
283
+                $columnNumber = $columnIndex+1;
284 284
                 $colsXml .= sprintf(SheetXml::COLUMN_XML, $columnNumber, $columnNumber, $columnWidth);
285 285
             }
286 286
             $colsXml = sprintf('<cols>%s</cols>', $colsXml);
Please login to merge, or discard this patch.