Completed
Push — develop ( 152d39...682b1b )
by Adrien
20:39 queued 03:17
created
src/PhpSpreadsheet/Writer/Xlsx.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,8 +140,8 @@
 block discarded – undo
140 140
         }
141 141
 
142 142
         $hashTablesArray = ['stylesConditionalHashTable', 'fillHashTable', 'fontHashTable',
143
-                                  'bordersHashTable', 'numFmtHashTable', 'drawingHashTable',
144
-                                  'styleHashTable',
143
+                                    'bordersHashTable', 'numFmtHashTable', 'drawingHashTable',
144
+                                    'styleHashTable',
145 145
                                 ];
146 146
 
147 147
         // Set HashTable variables
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xls.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5157,7 +5157,7 @@  discard block
 block discarded – undo
5157 5157
      * is in one piece.
5158 5158
      * Moves to next current position in data stream to start of next record different from a CONtINUE record
5159 5159
      *
5160
-     * @return array
5160
+     * @return integer|null
5161 5161
      */
5162 5162
     private function getSplicedRecordData()
5163 5163
     {
@@ -5421,7 +5421,7 @@  discard block
 block discarded – undo
5421 5421
      * @param string $formulaData Formula data
5422 5422
      * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
5423 5423
      * @throws Exception
5424
-     * @return array
5424
+     * @return string
5425 5425
      */
5426 5426
     private function getNextToken($formulaData, $baseCell = 'A1')
5427 5427
     {
@@ -6989,7 +6989,7 @@  discard block
 block discarded – undo
6989 6989
      * section 2.5.15
6990 6990
      *
6991 6991
      * @param string $subData
6992
-     * @return array
6992
+     * @return string
6993 6993
      */
6994 6994
     private function readBIFF8CellRangeAddressList($subData)
6995 6995
     {
@@ -7100,7 +7100,7 @@  discard block
 block discarded – undo
7100 7100
      * section 2.5.8
7101 7101
      *
7102 7102
      * @param string $arrayData
7103
-     * @return array
7103
+     * @return string
7104 7104
      */
7105 7105
     private static function readBIFF8ConstantArray($arrayData)
7106 7106
     {
@@ -7138,7 +7138,7 @@  discard block
 block discarded – undo
7138 7138
      * returns e.g. array('value' => '5', 'size' => 9)
7139 7139
      *
7140 7140
      * @param string $valueData
7141
-     * @return array
7141
+     * @return string
7142 7142
      */
7143 7143
     private static function readBIFF8Constant($valueData)
7144 7144
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xls/MD5.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -190,6 +190,11 @@
 block discarded – undo
190 190
         return ($Y ^ ($X | (~ $Z))) ; // Y XOR (X OR NOT Z)
191 191
     }
192 192
 
193
+    /**
194
+     * @param string[] $func
195
+     * @param integer $s
196
+     * @param integer $t
197
+     */
193 198
     private static function step($func, &$A, $B, $C, $D, $M, $s, $t)
194 199
     {
195 200
         $A = ($A + call_user_func($func, $B, $C, $D) + $M + $t) & 0xffffffff;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Worksheet.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1147,14 +1147,14 @@
 block discarded – undo
1147 1147
 
1148 1148
         // Pack the main data stream
1149 1149
         $data = pack('vvvv', $row1, $row2, $col1, $col2) .
1150
-                          $unknown1 .
1151
-                          $link_type .
1152
-                          $unknown2 .
1153
-                          $up_count .
1154
-                          $dir_short_len .
1155
-                          $dir_short .
1156
-                          $unknown3 .
1157
-                          $stream_len; /*.
1150
+                            $unknown1 .
1151
+                            $link_type .
1152
+                            $unknown2 .
1153
+                            $up_count .
1154
+                            $dir_short_len .
1155
+                            $dir_short .
1156
+                            $unknown3 .
1157
+                            $stream_len; /*.
1158 1158
                           $dir_long_len .
1159 1159
                           $unknown4     .
1160 1160
                           $dir_long     .
Please login to merge, or discard this patch.
Doc Comments   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -223,10 +223,12 @@  discard block
 block discarded – undo
223 223
      * @param int &$str_unique Total number of unique strings
224 224
      * @param array &$str_table String Table
225 225
      * @param array &$colors Colour Table
226
-     * @param mixed $parser The formula parser created for the Workbook
226
+     * @param Parser $parser The formula parser created for the Workbook
227 227
      * @param bool $preCalculateFormulas Flag indicating whether formulas should be calculated or just written
228 228
      * @param string $phpSheet The worksheet to write
229 229
      * @param \PhpOffice\PhpSpreadsheet\Worksheet $phpSheet
230
+     * @param integer $str_total
231
+     * @param integer $str_unique
230 232
      */
231 233
     public function __construct(&$str_total, &$str_unique, &$str_table, &$colors, $parser, $preCalculateFormulas, $phpSheet)
232 234
     {
@@ -624,7 +626,7 @@  discard block
 block discarded – undo
624 626
      * @param int $row Zero indexed row
625 627
      * @param int $col Zero indexed column
626 628
      * @param float $num The number to write
627
-     * @param mixed $xfIndex The optional XF format
629
+     * @param integer $xfIndex The optional XF format
628 630
      *
629 631
      * @return int
630 632
      */
@@ -733,7 +735,7 @@  discard block
 block discarded – undo
733 735
      * @param int $row Zero indexed row
734 736
      * @param int $col Zero indexed column
735 737
      * @param string $str The string to write
736
-     * @param mixed $xfIndex The XF format index for the cell
738
+     * @param integer $xfIndex The XF format index for the cell
737 739
      *
738 740
      * @return int
739 741
      */
@@ -800,7 +802,7 @@  discard block
 block discarded – undo
800 802
      *
801 803
      * @param int $row Zero indexed row
802 804
      * @param int $col Zero indexed column
803
-     * @param mixed $xfIndex The XF format index
805
+     * @param integer $xfIndex The XF format index
804 806
      */
805 807
     public function writeBlank($row, $col, $xfIndex)
806 808
     {
@@ -847,7 +849,7 @@  discard block
 block discarded – undo
847 849
      * @param int $row Zero indexed row
848 850
      * @param int $col Zero indexed column
849 851
      * @param string $formula The formula text string
850
-     * @param mixed $xfIndex The XF format index
852
+     * @param integer $xfIndex The XF format index
851 853
      * @param mixed $calculatedValue Calculated value
852 854
      *
853 855
      * @return int
@@ -2327,8 +2329,8 @@  discard block
 block discarded – undo
2327 2329
      * @param mixed $bitmap The bitmap filename or GD-image resource
2328 2330
      * @param int $x the horizontal position (offset) of the image inside the cell
2329 2331
      * @param int $y the vertical position (offset) of the image inside the cell
2330
-     * @param float $scale_x The horizontal scale
2331
-     * @param float $scale_y The vertical scale
2332
+     * @param integer $scale_x The horizontal scale
2333
+     * @param integer $scale_y The vertical scale
2332 2334
      */
2333 2335
     public function insertBitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1)
2334 2336
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Font.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
         $bFamily = 0; // Font family
86 86
         $bCharSet = \PHPExcel\Shared\Font::getCharsetFromFontName($this->font->getName()); // Character set
87 87
 
88
-        $record = 0x31;        // Record identifier
89
-        $reserved = 0x00;    // Reserved
90
-        $grbit = 0x00;        // Font attributes
88
+        $record = 0x31; // Record identifier
89
+        $reserved = 0x00; // Reserved
90
+        $grbit = 0x00; // Font attributes
91 91
         if ($this->font->getItalic()) {
92 92
             $grbit |= 0x02;
93 93
         }
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
     private static function mapBold($bold)
135 135
     {
136 136
         if ($bold) {
137
-            return 0x2BC;  //  700 = Bold font weight
137
+            return 0x2BC; //  700 = Bold font weight
138 138
         }
139
-        return 0x190;      //  400 = Normal font weight
139
+        return 0x190; //  400 = Normal font weight
140 140
     }
141 141
 
142 142
     /**
Please login to merge, or discard this patch.
docs/Examples/Reading WorkBook Data/exampleWorkBookReader01.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -37,53 +37,53 @@
 block discarded – undo
37 37
 
38 38
 /*  Read the document's creator property  **/
39 39
 $creator = $objPHPExcel->getProperties()->getCreator();
40
-echo '<b>Document Creator: </b>',$creator,'<br />';
40
+echo '<b>Document Creator: </b>', $creator, '<br />';
41 41
 
42 42
 /*  Read the Date when the workbook was created (as a PHP timestamp value)  **/
43 43
 $creationDatestamp = $objPHPExcel->getProperties()->getCreated();
44 44
 /*  Format the date and time using the standard PHP date() function  **/
45 45
 $creationDate = date('l, d<\s\up>S</\s\up> F Y', $creationDatestamp);
46 46
 $creationTime = date('g:i A', $creationDatestamp);
47
-echo '<b>Created On: </b>',$creationDate,' at ',$creationTime,'<br />';
47
+echo '<b>Created On: </b>', $creationDate, ' at ', $creationTime, '<br />';
48 48
 
49 49
 /*  Read the name of the last person to modify this workbook  **/
50 50
 $modifiedBy = $objPHPExcel->getProperties()->getLastModifiedBy();
51
-echo '<b>Last Modified By: </b>',$modifiedBy,'<br />';
51
+echo '<b>Last Modified By: </b>', $modifiedBy, '<br />';
52 52
 
53 53
 /*  Read the Date when the workbook was last modified (as a PHP timestamp value)  **/
54 54
 $modifiedDatestamp = $objPHPExcel->getProperties()->getModified();
55 55
 /*  Format the date and time using the standard PHP date() function  **/
56 56
 $modifiedDate = date('l, d<\s\up>S</\s\up> F Y', $modifiedDatestamp);
57 57
 $modifiedTime = date('g:i A', $modifiedDatestamp);
58
-echo '<b>Last Modified On: </b>',$modifiedDate,' at ',$modifiedTime,'<br />';
58
+echo '<b>Last Modified On: </b>', $modifiedDate, ' at ', $modifiedTime, '<br />';
59 59
 
60 60
 /*  Read the workbook title property  **/
61 61
 $workbookTitle = $objPHPExcel->getProperties()->getTitle();
62
-echo '<b>Title: </b>',$workbookTitle,'<br />';
62
+echo '<b>Title: </b>', $workbookTitle, '<br />';
63 63
 
64 64
 /*  Read the workbook description property  **/
65 65
 $description = $objPHPExcel->getProperties()->getDescription();
66
-echo '<b>Description: </b>',$description,'<br />';
66
+echo '<b>Description: </b>', $description, '<br />';
67 67
 
68 68
 /*  Read the workbook subject property  **/
69 69
 $subject = $objPHPExcel->getProperties()->getSubject();
70
-echo '<b>Subject: </b>',$subject,'<br />';
70
+echo '<b>Subject: </b>', $subject, '<br />';
71 71
 
72 72
 /*  Read the workbook keywords property  **/
73 73
 $keywords = $objPHPExcel->getProperties()->getKeywords();
74
-echo '<b>Keywords: </b>',$keywords,'<br />';
74
+echo '<b>Keywords: </b>', $keywords, '<br />';
75 75
 
76 76
 /*  Read the workbook category property  **/
77 77
 $category = $objPHPExcel->getProperties()->getCategory();
78
-echo '<b>Category: </b>',$category,'<br />';
78
+echo '<b>Category: </b>', $category, '<br />';
79 79
 
80 80
 /*  Read the workbook company property  **/
81 81
 $company = $objPHPExcel->getProperties()->getCompany();
82
-echo '<b>Company: </b>',$company,'<br />';
82
+echo '<b>Company: </b>', $company, '<br />';
83 83
 
84 84
 /*  Read the workbook manager property  **/
85 85
 $manager = $objPHPExcel->getProperties()->getManager();
86
-echo '<b>Manager: </b>',$manager,'<br />';
86
+echo '<b>Manager: </b>', $manager, '<br />';
87 87
 
88 88
 ?>
89 89
 <body>
Please login to merge, or discard this patch.
docs/Examples/Reading WorkBook Data/exampleWorkBookReader04.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
 echo 'Reading the number of Worksheets in the WorkBook<br />';
39 39
 /*  Use the PHPExcel object's getSheetCount() method to get a count of the number of WorkSheets in the WorkBook  */
40 40
 $sheetCount = $objPHPExcel->getSheetCount();
41
-echo 'There ',(($sheetCount == 1) ? 'is' : 'are'),' ',$sheetCount,' WorkSheet',(($sheetCount == 1) ? '' : 's'),' in the WorkBook<br /><br />';
41
+echo 'There ', (($sheetCount == 1) ? 'is' : 'are'), ' ', $sheetCount, ' WorkSheet', (($sheetCount == 1) ? '' : 's'), ' in the WorkBook<br /><br />';
42 42
 
43 43
 echo 'Reading the names of Worksheets in the WorkBook<br />';
44 44
 /*  Use the PHPExcel object's getSheetNames() method to get an array listing the names/titles of the WorkSheets in the WorkBook  */
45 45
 $sheetNames = $objPHPExcel->getSheetNames();
46 46
 foreach ($sheetNames as $sheetIndex => $sheetName) {
47
-    echo 'WorkSheet #',$sheetIndex,' is named "',$sheetName,'"<br />';
47
+    echo 'WorkSheet #', $sheetIndex, ' is named "', $sheetName, '"<br />';
48 48
 }
49 49
 
50 50
 ?>
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader04.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 $inputFileName = './sampleData/example1.xls';
29 29
 
30 30
 $inputFileType = PHPExcel_IOFactory::identify($inputFileName);
31
-echo 'File ',pathinfo($inputFileName, PATHINFO_BASENAME),' has been identified as an ',$inputFileType,' file<br />';
31
+echo 'File ', pathinfo($inputFileName, PATHINFO_BASENAME), ' has been identified as an ', $inputFileType, ' file<br />';
32 32
 
33
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with the identified reader type<br />';
33
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with the identified reader type<br />';
34 34
 $objReader = PHPExcel_IOFactory::createReader($inputFileType);
35 35
 $objPHPExcel = $objReader->load($inputFileName);
36 36
 
Please login to merge, or discard this patch.
docs/Examples/Reader/exampleReader01.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 include 'PHPExcel/IOFactory.php';
27 27
 
28 28
 $inputFileName = './sampleData/example_1.xls';
29
-echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory to identify the format<br />';
29
+echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory to identify the format<br />';
30 30
 try {
31 31
     $objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
32 32
 } catch (\PHPExcel\Reader\Exception $e) {
Please login to merge, or discard this patch.