Passed
Branch interfaces-and-less-statics (28360c)
by Stefan
02:41
created
src/OneSheet/Sheet.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * if its not an integer.
64 64
      *
65 65
      * @param array     $dataRow
66
-     * @param int|Style $style
66
+     * @param integer $style
67 67
      */
68 68
     public function addRow(array $dataRow, $style = 0)
69 69
     {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * Add multiple data rows to sheet.
79 79
      *
80 80
      * @param array     $dataRows
81
-     * @param int|Style $style
81
+     * @param integer $style
82 82
      */
83 83
     public function addRows(array $dataRows, $style = 0)
84 84
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $this->sheetData->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">');
42 42
 
43 43
         if (1 == preg_match('~[A-Z]+([1-9]?[0-9]+)$~', $freezePaneCellId, $match)) {
44
-            $this->sheetData->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>');
44
+            $this->sheetData->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>');
45 45
         }
46 46
 
47 47
         $this->sheetData->fwrite('<sheetData>');
Please login to merge, or discard this patch.
src/OneSheet/DefaultCellBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
             return $this->characters[$cellNumber] . $rowNumber;
90 90
         }
91 91
 
92
-        return $this->getCellId(floor($cellNumber / 26) - 1) . $this->characters[$cellNumber % 26] . $rowNumber;
92
+        return $this->getCellId(floor($cellNumber / 26)-1) . $this->characters[$cellNumber % 26] . $rowNumber;
93 93
     }
94 94
 
95 95
     /**
Please login to merge, or discard this patch.