@@ -171,6 +171,7 @@ discard block |
||
171 | 171 | |
172 | 172 | /** |
173 | 173 | * Create a new Chart |
174 | + * @param string $name |
|
174 | 175 | */ |
175 | 176 | public function __construct($name, Title $title = null, Legend $legend = null, PlotArea $plotArea = null, $plotVisibleOnly = true, $displayBlanksAs = '0', Title $xAxisLabel = null, Title $yAxisLabel = null, Axis $xAxis = null, Axis $yAxis = null, GridLines $majorGridlines = null, GridLines $minorGridlines = null) |
176 | 177 | { |
@@ -514,6 +515,9 @@ discard block |
||
514 | 515 | ]; |
515 | 516 | } |
516 | 517 | |
518 | + /** |
|
519 | + * @param integer $xOffset |
|
520 | + */ |
|
517 | 521 | public function setTopLeftXOffset($xOffset) |
518 | 522 | { |
519 | 523 | $this->topLeftXOffset = $xOffset; |
@@ -526,6 +530,9 @@ discard block |
||
526 | 530 | return $this->topLeftXOffset; |
527 | 531 | } |
528 | 532 | |
533 | + /** |
|
534 | + * @param integer $yOffset |
|
535 | + */ |
|
529 | 536 | public function setTopLeftYOffset($yOffset) |
530 | 537 | { |
531 | 538 | $this->topLeftYOffset = $yOffset; |
@@ -622,6 +629,9 @@ discard block |
||
622 | 629 | ]; |
623 | 630 | } |
624 | 631 | |
632 | + /** |
|
633 | + * @param integer $xOffset |
|
634 | + */ |
|
625 | 635 | public function setBottomRightXOffset($xOffset) |
626 | 636 | { |
627 | 637 | $this->bottomRightXOffset = $xOffset; |
@@ -634,6 +644,9 @@ discard block |
||
634 | 644 | return $this->bottomRightXOffset; |
635 | 645 | } |
636 | 646 | |
647 | + /** |
|
648 | + * @param integer $yOffset |
|
649 | + */ |
|
637 | 650 | public function setBottomRightYOffset($yOffset) |
638 | 651 | { |
639 | 652 | $this->bottomRightYOffset = $yOffset; |
@@ -287,6 +287,11 @@ discard block |
||
287 | 287 | return isset($c->v) ? (string) $c->v : null; |
288 | 288 | } |
289 | 289 | |
290 | + /** |
|
291 | + * @param string $r |
|
292 | + * @param string $cellDataType |
|
293 | + * @param string $castBaseType |
|
294 | + */ |
|
290 | 295 | private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType) |
291 | 296 | { |
292 | 297 | $cellDataType = 'f'; |
@@ -343,7 +348,7 @@ discard block |
||
343 | 348 | * |
344 | 349 | * @throws Exception |
345 | 350 | * |
346 | - * @return Spreadsheet |
|
351 | + * @return \PhpOffice\PhpSpreadsheet\Spreadsheet |
|
347 | 352 | */ |
348 | 353 | public function load($pFilename) |
349 | 354 | { |
@@ -2010,6 +2015,9 @@ discard block |
||
2010 | 2015 | } |
2011 | 2016 | } |
2012 | 2017 | |
2018 | + /** |
|
2019 | + * @param \PhpOffice\PhpSpreadsheet\Style\Border $docBorder |
|
2020 | + */ |
|
2013 | 2021 | private static function readBorder($docBorder, $eleBorder) |
2014 | 2022 | { |
2015 | 2023 | if (isset($eleBorder['style'])) { |
@@ -2132,6 +2140,9 @@ discard block |
||
2132 | 2140 | return preg_replace('~[^/]+/\.\./~', '', dirname($base)."/$add"); |
2133 | 2141 | } |
2134 | 2142 | |
2143 | + /** |
|
2144 | + * @param string $style |
|
2145 | + */ |
|
2135 | 2146 | private static function toCSSArray($style) |
2136 | 2147 | { |
2137 | 2148 | $style = str_replace(["\r", "\n"], '', $style); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | /** |
170 | 170 | * Convert a MS serialized datetime value from Excel to a PHP Date/Time object. |
171 | 171 | * |
172 | - * @param int|float $excelTimestamp MS Excel serialized date/time value |
|
172 | + * @param integer $excelTimestamp MS Excel serialized date/time value |
|
173 | 173 | * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
174 | 174 | * if you don't want to treat it as a UTC value |
175 | 175 | * Use the default (UST) unless you absolutely need a conversion |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | /** |
211 | 211 | * Convert a MS serialized datetime value from Excel to a unix timestamp. |
212 | 212 | * |
213 | - * @param int|float $excelTimestamp MS Excel serialized date/time value |
|
213 | + * @param integer $excelTimestamp MS Excel serialized date/time value |
|
214 | 214 | * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp, |
215 | 215 | * if you don't want to treat it as a UTC value |
216 | 216 | * Use the default (UST) unless you absolutely need a conversion |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | /** |
229 | 229 | * Convert a date from PHP to an MS Excel serialized date/time value. |
230 | 230 | * |
231 | - * @param mixed $dateValue Unix Timestamp or PHP DateTime object or a string |
|
231 | + * @param integer $dateValue Unix Timestamp or PHP DateTime object or a string |
|
232 | 232 | * |
233 | 233 | * @return float|bool Excel date/time value |
234 | 234 | * or boolean FALSE on failure |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | /** |
269 | 269 | * Convert a Unix timestamp to an MS Excel serialized date/time value. |
270 | 270 | * |
271 | - * @param \DateTimeInterface $dateValue Unix Timestamp |
|
271 | + * @param integer $dateValue Unix Timestamp |
|
272 | 272 | * |
273 | 273 | * @return float MS Excel serialized date/time value |
274 | 274 | */ |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @param int $pValue Value in pixels |
35 | 35 | * |
36 | - * @return int Value in EMU |
|
36 | + * @return double Value in EMU |
|
37 | 37 | */ |
38 | 38 | public static function pixelsToEMU($pValue = 0) |
39 | 39 | { |
@@ -238,7 +238,7 @@ |
||
238 | 238 | * Calculate an (approximate) OpenXML column width, based on font size and text contained. |
239 | 239 | * |
240 | 240 | * @param \PhpOffice\PhpSpreadsheet\Style\Font $font Font object |
241 | - * @param \PhpOffice\PhpSpreadsheet\RichText|string $cellText Text to calculate width |
|
241 | + * @param string $cellText Text to calculate width |
|
242 | 242 | * @param int $rotation Rotation angle |
243 | 243 | * @param \PhpOffice\PhpSpreadsheet\Style\Font|null $defaultFont Font object |
244 | 244 | * |
@@ -228,7 +228,7 @@ |
||
228 | 228 | /** |
229 | 229 | * Solve A*X = B. |
230 | 230 | * |
231 | - * @param $B A Matrix with as many rows as A and any number of columns |
|
231 | + * @param Matrix $B A Matrix with as many rows as A and any number of columns |
|
232 | 232 | * |
233 | 233 | * @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception IllegalArgumentException Matrix row dimensions must agree |
234 | 234 | * @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception RuntimeException Matrix is singular |
@@ -149,12 +149,6 @@ discard block |
||
149 | 149 | * |
150 | 150 | * Get a submatrix |
151 | 151 | * |
152 | - * @param int $i0 Initial row index |
|
153 | - * @param int $iF Final row index |
|
154 | - * @param int $j0 Initial column index |
|
155 | - * @param int $jF Final column index |
|
156 | - * |
|
157 | - * @return Matrix Submatrix |
|
158 | 152 | */ |
159 | 153 | public function getMatrix() |
160 | 154 | { |
@@ -365,7 +359,7 @@ discard block |
||
365 | 359 | * |
366 | 360 | * @param int $m Row dimension |
367 | 361 | * @param int $n Column dimension |
368 | - * @param mixed $c Diagonal value |
|
362 | + * @param integer $c Diagonal value |
|
369 | 363 | * |
370 | 364 | * @return Matrix Diagonal matrix |
371 | 365 | */ |
@@ -449,7 +443,7 @@ discard block |
||
449 | 443 | * |
450 | 444 | * Sum of diagonal elements |
451 | 445 | * |
452 | - * @return float Sum of diagonal elements |
|
446 | + * @return integer Sum of diagonal elements |
|
453 | 447 | */ |
454 | 448 | public function trace() |
455 | 449 | { |
@@ -478,9 +472,6 @@ discard block |
||
478 | 472 | * |
479 | 473 | * A + B |
480 | 474 | * |
481 | - * @param mixed $B Matrix/Array |
|
482 | - * |
|
483 | - * @return Matrix Sum |
|
484 | 475 | */ |
485 | 476 | public function plus() |
486 | 477 | { |
@@ -521,9 +512,6 @@ discard block |
||
521 | 512 | * |
522 | 513 | * A = A + B |
523 | 514 | * |
524 | - * @param mixed $B Matrix/Array |
|
525 | - * |
|
526 | - * @return Matrix Sum |
|
527 | 515 | */ |
528 | 516 | public function plusEquals() |
529 | 517 | { |
@@ -578,9 +566,6 @@ discard block |
||
578 | 566 | * |
579 | 567 | * A - B |
580 | 568 | * |
581 | - * @param mixed $B Matrix/Array |
|
582 | - * |
|
583 | - * @return Matrix Sum |
|
584 | 569 | */ |
585 | 570 | public function minus() |
586 | 571 | { |
@@ -621,9 +606,6 @@ discard block |
||
621 | 606 | * |
622 | 607 | * A = A - B |
623 | 608 | * |
624 | - * @param mixed $B Matrix/Array |
|
625 | - * |
|
626 | - * @return Matrix Sum |
|
627 | 609 | */ |
628 | 610 | public function minusEquals() |
629 | 611 | { |
@@ -679,9 +661,6 @@ discard block |
||
679 | 661 | * Element-by-element multiplication |
680 | 662 | * Cij = Aij * Bij |
681 | 663 | * |
682 | - * @param mixed $B Matrix/Array |
|
683 | - * |
|
684 | - * @return Matrix Matrix Cij |
|
685 | 664 | */ |
686 | 665 | public function arrayTimes() |
687 | 666 | { |
@@ -723,9 +702,6 @@ discard block |
||
723 | 702 | * Element-by-element multiplication |
724 | 703 | * Aij = Aij * Bij |
725 | 704 | * |
726 | - * @param mixed $B Matrix/Array |
|
727 | - * |
|
728 | - * @return Matrix Matrix Aij |
|
729 | 705 | */ |
730 | 706 | public function arrayTimesEquals() |
731 | 707 | { |
@@ -781,9 +757,6 @@ discard block |
||
781 | 757 | * Element-by-element right division |
782 | 758 | * A / B |
783 | 759 | * |
784 | - * @param Matrix $B Matrix B |
|
785 | - * |
|
786 | - * @return Matrix Division result |
|
787 | 760 | */ |
788 | 761 | public function arrayRightDivide() |
789 | 762 | { |
@@ -844,9 +817,6 @@ discard block |
||
844 | 817 | * Element-by-element right division |
845 | 818 | * Aij = Aij / Bij |
846 | 819 | * |
847 | - * @param mixed $B Matrix/Array |
|
848 | - * |
|
849 | - * @return Matrix Matrix Aij |
|
850 | 820 | */ |
851 | 821 | public function arrayRightDivideEquals() |
852 | 822 | { |
@@ -888,9 +858,6 @@ discard block |
||
888 | 858 | * Element-by-element Left division |
889 | 859 | * A / B |
890 | 860 | * |
891 | - * @param Matrix $B Matrix B |
|
892 | - * |
|
893 | - * @return Matrix Division result |
|
894 | 861 | */ |
895 | 862 | public function arrayLeftDivide() |
896 | 863 | { |
@@ -932,9 +899,6 @@ discard block |
||
932 | 899 | * Element-by-element Left division |
933 | 900 | * Aij = Aij / Bij |
934 | 901 | * |
935 | - * @param mixed $B Matrix/Array |
|
936 | - * |
|
937 | - * @return Matrix Matrix Aij |
|
938 | 902 | */ |
939 | 903 | public function arrayLeftDivideEquals() |
940 | 904 | { |
@@ -975,9 +939,6 @@ discard block |
||
975 | 939 | * |
976 | 940 | * Matrix multiplication |
977 | 941 | * |
978 | - * @param mixed $n Matrix/Array/Scalar |
|
979 | - * |
|
980 | - * @return Matrix Product |
|
981 | 942 | */ |
982 | 943 | public function times() |
983 | 944 | { |
@@ -1078,9 +1039,6 @@ discard block |
||
1078 | 1039 | * |
1079 | 1040 | * A = A ^ B |
1080 | 1041 | * |
1081 | - * @param mixed $B Matrix/Array |
|
1082 | - * |
|
1083 | - * @return Matrix Sum |
|
1084 | 1042 | */ |
1085 | 1043 | public function power() |
1086 | 1044 | { |
@@ -1135,9 +1093,6 @@ discard block |
||
1135 | 1093 | * |
1136 | 1094 | * A = A & B |
1137 | 1095 | * |
1138 | - * @param mixed $B Matrix/Array |
|
1139 | - * |
|
1140 | - * @return Matrix Sum |
|
1141 | 1096 | */ |
1142 | 1097 | public function concat() |
1143 | 1098 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * If a resource pointer to a stream created by fopen() is passed |
56 | 56 | * it will be used, but you have to close such stream by yourself. |
57 | 57 | * |
58 | - * @param string|resource $filename The name of the file or stream where to save the OLE container |
|
58 | + * @param string|null $filename The name of the file or stream where to save the OLE container |
|
59 | 59 | * |
60 | 60 | * @throws \PhpOffice\PhpSpreadsheet\Writer\WriteException |
61 | 61 | * |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * |
121 | 121 | * @param array $raList Reference to an array of PPS's |
122 | 122 | * |
123 | - * @return float[] The array of numbers |
|
123 | + * @return double[] The array of numbers |
|
124 | 124 | */ |
125 | 125 | public function _calcSize(&$raList) |
126 | 126 | { |
@@ -387,7 +387,7 @@ |
||
387 | 387 | /** |
388 | 388 | * Get Contiguous |
389 | 389 | * |
390 | - * @return bool |
|
390 | + * @return integer |
|
391 | 391 | */ |
392 | 392 | public function getContiguous() |
393 | 393 | { |