Completed
Branch master (39d3cb)
by Stefan
02:18
created
Category
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/CellHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             return self::$chars[$cellNo] . $rowIndex;
37 37
         }
38 38
 
39
-        return self::buildId(floor($cellNo / 26) - 1) . self::$chars[$cellNo % 26] . $rowIndex;
39
+        return self::buildId(floor($cellNo / 26)-1) . self::$chars[$cellNo % 26] . $rowIndex;
40 40
     }
41 41
 
42 42
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             $value = self::escape($value);
60 60
         }
61 61
 
62
-        return '<c r="' . self::buildId($cellNo, $rowId) . '" s="' . $styleId. '" t="inlineStr"><is><t>' . $value . '</t></is></c>';
62
+        return '<c r="' . self::buildId($cellNo, $rowId) . '" s="' . $styleId . '" t="inlineStr"><is><t>' . $value . '</t></is></c>';
63 63
     }
64 64
 
65 65
     /**
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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $this->spl->fwrite('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xml:space="preserve" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">');
32 32
 
33 33
         if (1 == preg_match('~[A-Z]+([1-9]?[0-9]+)$~', $freezePaneCellId, $match)) {
34
-            $this->spl->fwrite('<sheetViews><sheetView tabSelected="1" workbookViewId="0" showGridLines="true" showRowColHeaders="1"><pane ySplit="'. (array_pop($match)-1) .'" topLeftCell="'. $freezePaneCellId .'" activePane="bottomLeft" state="frozen"/></sheetView></sheetViews>');
34
+            $this->spl->fwrite('<sheetViews><sheetView tabSelected="1" workbookViewId="0" showGridLines="true" showRowColHeaders="1"><pane ySplit="' . (array_pop($match)-1) . '" topLeftCell="' . $freezePaneCellId . '" activePane="bottomLeft" state="frozen"/></sheetView></sheetViews>');
35 35
         }
36 36
 
37 37
         $this->spl->fwrite('<sheetData>');
Please login to merge, or discard this patch.