Completed
Push — master ( bc5395...2d139c )
by Stefan
02:32
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/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.
src/OneSheet/Sheet.php 1 patch
Spacing   +3 added lines, -3 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
     /**
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     public function getDimensionXml()
253 253
     {
254 254
         return sprintf(SheetXml::DIMENSION_XML,
255
-            $this->cellBuilder->getCellId($this->maxColumnCount - 1, $this->rowIndex - 1)
255
+            $this->cellBuilder->getCellId($this->maxColumnCount-1, $this->rowIndex-1)
256 256
         );
257 257
     }
258 258
 
@@ -268,6 +268,6 @@  discard block
 block discarded – undo
268 268
             return '';
269 269
         }
270 270
 
271
-        return sprintf(SheetXml::SHEETVIEWS_XML, array_pop($m) - 1, $this->freezePaneCellId);
271
+        return sprintf(SheetXml::SHEETVIEWS_XML, array_pop($m)-1, $this->freezePaneCellId);
272 272
     }
273 273
 }
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.