@@ -316,6 +316,10 @@ |
||
316 | 316 | return $this->yBestFitValues; |
317 | 317 | } |
318 | 318 | |
319 | + /** |
|
320 | + * @param double $sumY2 |
|
321 | + * @param boolean $const |
|
322 | + */ |
|
319 | 323 | protected function calculateGoodnessOfFit($sumX, $sumY, $sumX2, $sumY2, $sumXY, $meanX, $meanY, $const) |
320 | 324 | { |
321 | 325 | $SSres = $SScov = $SScor = $SStot = $SSsex = 0.0; |
@@ -98,7 +98,7 @@ |
||
98 | 98 | * Find if given fileName exist in archive (Emulate ZipArchive locateName()) |
99 | 99 | * |
100 | 100 | * @param string $fileName Filename for the file in zip archive |
101 | - * @return bool |
|
101 | + * @return integer |
|
102 | 102 | */ |
103 | 103 | public function locateName($fileName) |
104 | 104 | { |
@@ -166,7 +166,7 @@ |
||
166 | 166 | * |
167 | 167 | * @param int $offset byte offset |
168 | 168 | * @param int $whence SEEK_SET, SEEK_CUR or SEEK_END |
169 | - * @return bool |
|
169 | + * @return boolean|null |
|
170 | 170 | */ |
171 | 171 | public function stream_seek($offset, $whence) // @codingStandardsIgnoreLine |
172 | 172 | { |
@@ -147,7 +147,7 @@ |
||
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 | { |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | * |
585 | 585 | * @param string $index Chart index position |
586 | 586 | * @throws Exception |
587 | - * @return false|Chart |
|
587 | + * @return null|Chart |
|
588 | 588 | */ |
589 | 589 | public function getChartByIndex($index = null) |
590 | 590 | { |
@@ -1085,7 +1085,7 @@ discard block |
||
1085 | 1085 | * Set a cell value |
1086 | 1086 | * |
1087 | 1087 | * @param string $pCoordinate Coordinate of the cell |
1088 | - * @param mixed $pValue Value of the cell |
|
1088 | + * @param integer $pValue Value of the cell |
|
1089 | 1089 | * @param bool $returnCell Return the worksheet (false, default) or the cell (true) |
1090 | 1090 | * @return Worksheet|Cell Depending on the last parameter being specified |
1091 | 1091 | */ |
@@ -1196,8 +1196,8 @@ discard block |
||
1196 | 1196 | /** |
1197 | 1197 | * Get cell at a specific coordinate by using numeric cell coordinates |
1198 | 1198 | * |
1199 | - * @param string $pColumn Numeric column coordinate of the cell |
|
1200 | - * @param string $pRow Numeric row coordinate of the cell |
|
1199 | + * @param integer $pColumn Numeric column coordinate of the cell |
|
1200 | + * @param integer $pRow Numeric row coordinate of the cell |
|
1201 | 1201 | * @param bool $createIfNotExists Flag indicating whether a new cell should be created if it doesn't |
1202 | 1202 | * already exist, or a null should be returned instead |
1203 | 1203 | * @return null|Cell Cell that was found/created or null |
@@ -1305,8 +1305,8 @@ discard block |
||
1305 | 1305 | /** |
1306 | 1306 | * Cell at a specific coordinate by using numeric cell coordinates exists? |
1307 | 1307 | * |
1308 | - * @param string $pColumn Numeric column coordinate of the cell |
|
1309 | - * @param string $pRow Numeric row coordinate of the cell |
|
1308 | + * @param integer $pColumn Numeric column coordinate of the cell |
|
1309 | + * @param integer $pRow Numeric row coordinate of the cell |
|
1310 | 1310 | * @return bool |
1311 | 1311 | */ |
1312 | 1312 | public function cellExistsByColumnAndRow($pColumn = 0, $pRow = 1) |
@@ -1923,7 +1923,7 @@ discard block |
||
1923 | 1923 | /** |
1924 | 1924 | * Set AutoFilter |
1925 | 1925 | * |
1926 | - * @param Worksheet\AutoFilter|string $pValue |
|
1926 | + * @param string $pValue |
|
1927 | 1927 | * A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility |
1928 | 1928 | * @throws Exception |
1929 | 1929 | * @return Worksheet |
@@ -2954,7 +2954,7 @@ discard block |
||
2954 | 2954 | * |
2955 | 2955 | * @param null|string Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore) |
2956 | 2956 | * @throws Exception |
2957 | - * @return objWorksheet |
|
2957 | + * @return Worksheet |
|
2958 | 2958 | */ |
2959 | 2959 | public function setCodeName($pValue = null) |
2960 | 2960 | { |
@@ -567,6 +567,11 @@ |
||
567 | 567 | return ['method' => 'filterTestInCustomDataSet', 'arguments' => ['filterRules' => $ruleValues, 'join' => AutoFilter\Column::AUTOFILTER_COLUMN_JOIN_AND]]; |
568 | 568 | } |
569 | 569 | |
570 | + /** |
|
571 | + * @param integer $columnID |
|
572 | + * @param integer $startRow |
|
573 | + * @param string $ruleType |
|
574 | + */ |
|
570 | 575 | private function calculateTopTenValue($columnID, $startRow, $endRow, $ruleType, $ruleValue) |
571 | 576 | { |
572 | 577 | $range = $columnID . $startRow . ':' . $columnID . $endRow; |
@@ -101,7 +101,7 @@ |
||
101 | 101 | /** |
102 | 102 | * Set Row Height |
103 | 103 | * |
104 | - * @param float $pValue |
|
104 | + * @param integer $pValue |
|
105 | 105 | * @return RowDimension |
106 | 106 | */ |
107 | 107 | public function setRowHeight($pValue = -1) |
@@ -199,10 +199,12 @@ discard block |
||
199 | 199 | * @param int &$str_unique Total number of unique strings |
200 | 200 | * @param array &$str_table String Table |
201 | 201 | * @param array &$colors Colour Table |
202 | - * @param mixed $parser The formula parser created for the Workbook |
|
202 | + * @param Parser $parser The formula parser created for the Workbook |
|
203 | 203 | * @param bool $preCalculateFormulas Flag indicating whether formulas should be calculated or just written |
204 | 204 | * @param string $phpSheet The worksheet to write |
205 | 205 | * @param \PhpSpreadsheet\Worksheet $phpSheet |
206 | + * @param integer $str_total |
|
207 | + * @param integer $str_unique |
|
206 | 208 | */ |
207 | 209 | public function __construct(&$str_total, &$str_unique, &$str_table, &$colors, $parser, $preCalculateFormulas, $phpSheet) |
208 | 210 | { |
@@ -611,7 +613,7 @@ discard block |
||
611 | 613 | * @param int $row Zero indexed row |
612 | 614 | * @param int $col Zero indexed column |
613 | 615 | * @param float $num The number to write |
614 | - * @param mixed $xfIndex The optional XF format |
|
616 | + * @param integer $xfIndex The optional XF format |
|
615 | 617 | * @return int |
616 | 618 | */ |
617 | 619 | private function writeNumber($row, $col, $num, $xfIndex) |
@@ -717,7 +719,7 @@ discard block |
||
717 | 719 | * @param int $row Zero indexed row |
718 | 720 | * @param int $col Zero indexed column |
719 | 721 | * @param string $str The string to write |
720 | - * @param mixed $xfIndex The XF format index for the cell |
|
722 | + * @param integer $xfIndex The XF format index for the cell |
|
721 | 723 | * @return int |
722 | 724 | */ |
723 | 725 | private function writeLabelSst($row, $col, $str, $xfIndex) |
@@ -783,7 +785,7 @@ discard block |
||
783 | 785 | * |
784 | 786 | * @param int $row Zero indexed row |
785 | 787 | * @param int $col Zero indexed column |
786 | - * @param mixed $xfIndex The XF format index |
|
788 | + * @param integer $xfIndex The XF format index |
|
787 | 789 | */ |
788 | 790 | public function writeBlank($row, $col, $xfIndex) |
789 | 791 | { |
@@ -830,7 +832,7 @@ discard block |
||
830 | 832 | * @param int $row Zero indexed row |
831 | 833 | * @param int $col Zero indexed column |
832 | 834 | * @param string $formula The formula text string |
833 | - * @param mixed $xfIndex The XF format index |
|
835 | + * @param integer $xfIndex The XF format index |
|
834 | 836 | * @param mixed $calculatedValue Calculated value |
835 | 837 | * @return int |
836 | 838 | */ |
@@ -2299,8 +2301,8 @@ discard block |
||
2299 | 2301 | * @param mixed $bitmap The bitmap filename or GD-image resource |
2300 | 2302 | * @param int $x The horizontal position (offset) of the image inside the cell. |
2301 | 2303 | * @param int $y The vertical position (offset) of the image inside the cell. |
2302 | - * @param float $scale_x The horizontal scale |
|
2303 | - * @param float $scale_y The vertical scale |
|
2304 | + * @param integer $scale_x The horizontal scale |
|
2305 | + * @param integer $scale_y The vertical scale |
|
2304 | 2306 | */ |
2305 | 2307 | public function insertBitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1) |
2306 | 2308 | { |
@@ -1147,14 +1147,14 @@ |
||
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 . |
@@ -65,7 +65,7 @@ |
||
65 | 65 | public function testGetCurrencyCode() |
66 | 66 | { |
67 | 67 | $localeconv = localeconv(); |
68 | - $expectedResult = (!empty($localeconv['currency_symbol']) ? $localeconv['currency_symbol'] : (!empty($localeconv['int_curr_symbol']) ? $localeconv['int_curr_symbol']: '$')); |
|
68 | + $expectedResult = (!empty($localeconv['currency_symbol']) ? $localeconv['currency_symbol'] : (!empty($localeconv['int_curr_symbol']) ? $localeconv['int_curr_symbol'] : '$')); |
|
69 | 69 | $result = call_user_func([StringHelper::class, 'getCurrencyCode']); |
70 | 70 | $this->assertEquals($expectedResult, $result); |
71 | 71 | } |