Completed
Pull Request — develop (#90)
by Tony
16:44
created
src/PhpSpreadsheet/Calculation/LookupRef.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @param row Row number to use in the cell reference
38 38
      * @param column Column number to use in the cell reference
39
-     * @param relativity Flag indicating the type of reference to return
39
+     * @param relativity integer indicating the type of reference to return
40 40
      *                                1 or omitted    Absolute
41 41
      *                                2                Absolute row; relative column
42 42
      *                                3                Relative row; absolute column
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param sheetText Optional Name of worksheet to use
48 48
      * @param mixed $row
49 49
      * @param mixed $column
50
-     * @param mixed $relativity
50
+     * @param integer $relativity
51 51
      * @param mixed $referenceStyle
52 52
      * @param mixed $sheetText
53 53
      *
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      *
359 359
      * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or
360 360
      *                                range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value.
361
-     * @param rows The number of rows, up or down, that you want the upper-left cell to refer to.
361
+     * @param rows integer number of rows, up or down, that you want the upper-left cell to refer to.
362 362
      *                                Using 5 as the rows argument specifies that the upper-left cell in the reference is
363 363
      *                                five rows below reference. Rows can be positive (which means below the starting reference)
364 364
      *                                or negative (which means above the starting reference).
@@ -370,8 +370,8 @@  discard block
 block discarded – undo
370 370
      * @param height The height, in number of rows, that you want the returned reference to be. Height must be a positive number.
371 371
      * @param width The width, in number of columns, that you want the returned reference to be. Width must be a positive number.
372 372
      * @param null|mixed $cellAddress
373
-     * @param mixed $rows
374
-     * @param mixed $columns
373
+     * @param integer $rows
374
+     * @param integer $columns
375 375
      * @param null|mixed $height
376 376
      * @param null|mixed $width
377 377
      * @param \PhpOffice\PhpSpreadsheet\Cell $pCell
@@ -499,10 +499,10 @@  discard block
 block discarded – undo
499 499
      *
500 500
      * @param lookup_value The value that you want to match in lookup_array
501 501
      * @param lookup_array The range of cells being searched
502
-     * @param match_type The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
502
+     * @param match_type integer number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
503 503
      * @param mixed $lookup_value
504 504
      * @param mixed $lookup_array
505
-     * @param mixed $match_type
505
+     * @param integer $match_type
506 506
      *
507 507
      * @return int The relative position of the found item
508 508
      */
@@ -599,8 +599,8 @@  discard block
 block discarded – undo
599 599
      * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required.
600 600
      * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required.
601 601
      * @param mixed $arrayValues
602
-     * @param mixed $rowNum
603
-     * @param mixed $columnNum
602
+     * @param integer $rowNum
603
+     * @param integer $columnNum
604 604
      *
605 605
      * @return mixed the value of a specified cell or array of cells
606 606
      */
@@ -696,11 +696,11 @@  discard block
 block discarded – undo
696 696
      *
697 697
      * @param lookup_value The value that you want to match in lookup_array
698 698
      * @param lookup_array The range of cells being searched
699
-     * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1.
699
+     * @param index_number integer column number in table_array from which the matching value must be returned. The first column is 1.
700 700
      * @param not_exact_match determines if you are looking for an exact match based on lookup_value
701 701
      * @param mixed $lookup_value
702 702
      * @param mixed $lookup_array
703
-     * @param mixed $index_number
703
+     * @param integer $index_number
704 704
      * @param mixed $not_exact_match
705 705
      *
706 706
      * @return mixed The value of the found cell
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Slk.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -472,7 +472,7 @@
 block discarded – undo
472 472
      *
473 473
      * @param int $pValue Sheet index
474 474
      *
475
-     * @return SYLK
475
+     * @return Slk
476 476
      */
477 477
     public function setSheetIndex($pValue = 0)
478 478
     {
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
@@ -5118,7 +5118,7 @@  discard block
 block discarded – undo
5118 5118
      * is in one piece.
5119 5119
      * Moves to next current position in data stream to start of next record different from a CONtINUE record.
5120 5120
      *
5121
-     * @return array
5121
+     * @return integer|null
5122 5122
      */
5123 5123
     private function getSplicedRecordData()
5124 5124
     {
@@ -5368,7 +5368,7 @@  discard block
 block discarded – undo
5368 5368
      *
5369 5369
      * @throws Exception
5370 5370
      *
5371
-     * @return array
5371
+     * @return string
5372 5372
      */
5373 5373
     private function getNextToken($formulaData, $baseCell = 'A1')
5374 5374
     {
@@ -6945,7 +6945,7 @@  discard block
 block discarded – undo
6945 6945
      *
6946 6946
      * @param string $subData
6947 6947
      *
6948
-     * @return array
6948
+     * @return string
6949 6949
      */
6950 6950
     private function readBIFF8CellRangeAddressList($subData)
6951 6951
     {
@@ -7060,7 +7060,7 @@  discard block
 block discarded – undo
7060 7060
      *
7061 7061
      * @param string $arrayData
7062 7062
      *
7063
-     * @return array
7063
+     * @return string
7064 7064
      */
7065 7065
     private static function readBIFF8ConstantArray($arrayData)
7066 7066
     {
@@ -7099,7 +7099,7 @@  discard block
 block discarded – undo
7099 7099
      *
7100 7100
      * @param string $valueData
7101 7101
      *
7102
-     * @return array
7102
+     * @return string
7103 7103
      */
7104 7104
     private static function readBIFF8Constant($valueData)
7105 7105
     {
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
@@ -187,6 +187,11 @@
 block discarded – undo
187 187
         return $Y ^ ($X | (~$Z)); // Y XOR (X OR NOT Z)
188 188
     }
189 189
 
190
+    /**
191
+     * @param string[] $func
192
+     * @param integer $s
193
+     * @param integer $t
194
+     */
190 195
     private static function step($func, &$A, $B, $C, $D, $M, $s, $t)
191 196
     {
192 197
         $A = ($A + call_user_func($func, $B, $C, $D) + $M + $t) & 0xffffffff;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xml.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -230,6 +230,9 @@  discard block
 block discarded – undo
230 230
         return $this->loadIntoExisting($pFilename, $spreadsheet);
231 231
     }
232 232
 
233
+    /**
234
+     * @param string $styleAttributeValue
235
+     */
233 236
     protected static function identifyFixedStyleValue($styleList, &$styleAttributeValue)
234 237
     {
235 238
         $styleAttributeValue = strtolower($styleAttributeValue);
@@ -761,6 +764,9 @@  discard block
 block discarded – undo
761 764
         return $spreadsheet;
762 765
     }
763 766
 
767
+    /**
768
+     * @param string $charset
769
+     */
764 770
     protected static function convertStringEncoding($string, $charset)
765 771
     {
766 772
         if ($charset != 'UTF-8') {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLERead.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     /**
70 70
      * Read the file.
71 71
      *
72
-     * @param $pFilename string Filename
72
+     * @param string $pFilename string Filename
73 73
      *
74 74
      * @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
75 75
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/ZipArchive.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      *
102 102
      * @param string $fileName Filename for the file in zip archive
103 103
      *
104
-     * @return bool
104
+     * @return integer
105 105
      */
106 106
     public function locateName($fileName)
107 107
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
     /**
148 148
      * Get parent. Only used for style supervisor.
149 149
      *
150
-     * @return Spreadsheet
150
+     * @return Style
151 151
      */
152 152
     public function getParent()
153 153
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Style/Fill.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
     /**
233 233
      * Set Rotation.
234 234
      *
235
-     * @param float $pValue
235
+     * @param integer $pValue
236 236
      *
237 237
      * @return Fill
238 238
      */
Please login to merge, or discard this patch.