Completed
Push — develop ( 1ff41e...7a734f )
by Stefan
06:46 queued 04:23
created
src/OneSheet/Writer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     public function __construct(Sheet $sheet, $fileName = 'dummy.xlsx')
52 52
     {
53 53
         $this->zip = new \ZipArchive();
54
-        $this->zip->open($fileName, \ZipArchive::CREATE|\ZipArchive::CM_STORE);
54
+        $this->zip->open($fileName, \ZipArchive::CREATE | \ZipArchive::CM_STORE);
55 55
         $this->sheet = $sheet;
56 56
     }
57 57
 
Please login to merge, or discard this patch.
src/OneSheet/DefaultCellBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $this->characters = range('A', 'Z');
48 48
 
49
-        foreach(range(chr(0), chr(31)) as $key => $char) {
49
+        foreach (range(chr(0), chr(31)) as $key => $char) {
50 50
             if (!in_array($char, array("\n", "\r", "\t"))) {
51 51
                 $this->controlCharacters[] = $char;
52 52
                 $this->escapeCharacters[] = sprintf('_x%04s_', strtoupper(dechex($key)));
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             return $this->characters[$cellNumber] . $rowNumber;
93 93
         }
94 94
 
95
-        return $this->getCellId(floor($cellNumber / 26) - 1) . $this->characters[$cellNumber % 26] . $rowNumber;
95
+        return $this->getCellId(floor($cellNumber / 26)-1) . $this->characters[$cellNumber % 26] . $rowNumber;
96 96
     }
97 97
 
98 98
     /**
Please login to merge, or discard this patch.
src/OneSheet/Sheet.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
         $this->spl->fwrite(SheetXml::HEADER_XML);
42 42
 
43 43
         if (1 == preg_match('~[A-Z]+([1-9]?[0-9]+)$~', $freezePaneCellId, $match)) {
44
-            $this->spl->fwrite(sprintf(SheetXml::SHEETVIEWS_XML, (array_pop($match) - 1), $freezePaneCellId));
44
+            $this->spl->fwrite(sprintf(SheetXml::SHEETVIEWS_XML, (array_pop($match)-1), $freezePaneCellId));
45 45
         }
46 46
 
47 47
         $this->spl->fwrite('<sheetData>');
Please login to merge, or discard this patch.