@@ -183,7 +183,7 @@ |
||
183 | 183 | * This function converts a number to text using currency format, with the decimals rounded to the specified place. |
184 | 184 | * The format used is $#,##0.00_);($#,##0.00).. |
185 | 185 | * |
186 | - * @param float $value The value to format |
|
186 | + * @param integer $value The value to format |
|
187 | 187 | * @param int $decimals The number of digits to display to the right of the decimal point. |
188 | 188 | * If decimals is negative, number is rounded to the left of the decimal point. |
189 | 189 | * If you omit decimals, it is assumed to be 2 |
@@ -757,7 +757,7 @@ |
||
757 | 757 | * Calculate range boundaries |
758 | 758 | * |
759 | 759 | * @param string $pRange Cell range (e.g. A1:A1) |
760 | - * @return array Range coordinates array(Start Cell, End Cell) |
|
760 | + * @return integer Range coordinates array(Start Cell, End Cell) |
|
761 | 761 | * where Start Cell and End Cell are arrays (Column ID, Row Number) |
762 | 762 | */ |
763 | 763 | public static function getRangeBoundaries($pRange = 'A1:A1') |
@@ -136,6 +136,11 @@ discard block |
||
136 | 136 | return (string) 100 - $alpha . '000'; |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param string $color |
|
141 | + * @param integer $alpha |
|
142 | + * @param string $type |
|
143 | + */ |
|
139 | 144 | protected function setColorProperties($color, $alpha, $type) |
140 | 145 | { |
141 | 146 | return [ |
@@ -145,6 +150,9 @@ discard block |
||
145 | 150 | ]; |
146 | 151 | } |
147 | 152 | |
153 | + /** |
|
154 | + * @param string $array_kay_selector |
|
155 | + */ |
|
148 | 156 | protected function getLineStyleArrowSize($array_selector, $array_kay_selector) |
149 | 157 | { |
150 | 158 | $sizes = [ |
@@ -162,6 +170,9 @@ discard block |
||
162 | 170 | return $sizes[$array_selector][$array_kay_selector]; |
163 | 171 | } |
164 | 172 | |
173 | + /** |
|
174 | + * @param integer $shadow_presets_option |
|
175 | + */ |
|
165 | 176 | protected function getShadowPresetsMap($shadow_presets_option) |
166 | 177 | { |
167 | 178 | $presets_options = [ |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | /** |
165 | 165 | * Convert a MS serialized datetime value from Excel to a PHP Date/Time object |
166 | 166 | * |
167 | - * @param int|float $excelTimestamp MS Excel serialized date/time value |
|
167 | + * @param integer $excelTimestamp MS Excel serialized date/time value |
|
168 | 168 | * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
169 | 169 | * if you don't want to treat it as a UTC value |
170 | 170 | * Use the default (UST) unless you absolutely need a conversion |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | /** |
204 | 204 | * Convert a MS serialized datetime value from Excel to a unix timestamp |
205 | 205 | * |
206 | - * @param int|float $excelTimestamp MS Excel serialized date/time value |
|
206 | + * @param integer $excelTimestamp MS Excel serialized date/time value |
|
207 | 207 | * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
208 | 208 | * if you don't want to treat it as a UTC value |
209 | 209 | * Use the default (UST) unless you absolutely need a conversion |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | /** |
220 | 220 | * Convert a date from PHP to an MS Excel serialized date/time value |
221 | 221 | * |
222 | - * @param mixed $dateValue Unix Timestamp or PHP DateTime object or a string |
|
222 | + * @param integer $dateValue Unix Timestamp or PHP DateTime object or a string |
|
223 | 223 | * @return float|bool Excel date/time value |
224 | 224 | * or boolean FALSE on failure |
225 | 225 | */ |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | /** |
258 | 258 | * Convert a Unix timestamp to an MS Excel serialized date/time value |
259 | 259 | * |
260 | - * @param \DateTimeInterface $dateValue Unix Timestamp |
|
260 | + * @param integer $dateValue Unix Timestamp |
|
261 | 261 | * @return float MS Excel serialized date/time value |
262 | 262 | */ |
263 | 263 | public static function timestampToExcel($dateValue = 0) |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * Convert pixels to EMU |
31 | 31 | * |
32 | 32 | * @param int $pValue Value in pixels |
33 | - * @return int Value in EMU |
|
33 | + * @return double Value in EMU |
|
34 | 34 | */ |
35 | 35 | public static function pixelsToEMU($pValue = 0) |
36 | 36 | { |
@@ -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 | { |
@@ -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 | { |
@@ -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; |