Completed
Push — develop ( 031af1...152d39 )
by Adrien
21:40
created
src/PhpSpreadsheet/Calculation/Statistical.php 1 patch
Doc Comments   +9 added lines, -46 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      * @param mixed $p
134 134
      * @param mixed $q
135 135
      *
136
-     * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
136
+     * @return double if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
137 137
      *
138 138
      * @author Jaco van Kooten
139 139
      */
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
      * @author Jaco van Kooten
160 160
      *
161 161
      * @param mixed $x
162
-     * @param mixed $p
163
-     * @param mixed $q
162
+     * @param double $p
163
+     * @param double $q
164 164
      */
165 165
     private static function betaFraction($x, $p, $q)
166 166
     {
@@ -722,7 +722,6 @@  discard block
 block discarded – undo
722 722
      *
723 723
      * @category Statistical Functions
724 724
      *
725
-     * @param mixed $arg,... Data values
726 725
      *
727 726
      * @return float
728 727
      */
@@ -773,7 +772,6 @@  discard block
 block discarded – undo
773 772
      *
774 773
      * @category Statistical Functions
775 774
      *
776
-     * @param mixed $arg,... Data values
777 775
      *
778 776
      * @return float
779 777
      */
@@ -816,7 +814,6 @@  discard block
 block discarded – undo
816 814
      *
817 815
      * @category Statistical Functions
818 816
      *
819
-     * @param mixed $arg,... Data values
820 817
      *
821 818
      * @return float
822 819
      */
@@ -863,7 +860,6 @@  discard block
 block discarded – undo
863 860
      *
864 861
      * @category Mathematical and Trigonometric Functions
865 862
      *
866
-     * @param mixed $arg,... Data values
867 863
      * @param string $condition the criteria that defines which cells will be checked
868 864
      * @param mixed[] $averageArgs Data values
869 865
      * @param mixed $aArgs
@@ -910,8 +906,8 @@  discard block
 block discarded – undo
910 906
      * @param float $value Value at which you want to evaluate the distribution
911 907
      * @param float $alpha Parameter to the distribution
912 908
      * @param float $beta Parameter to the distribution
913
-     * @param mixed $rMin
914
-     * @param mixed $rMax
909
+     * @param integer $rMin
910
+     * @param integer $rMax
915 911
      *
916 912
      * @return float
917 913
      */
@@ -949,8 +945,8 @@  discard block
 block discarded – undo
949 945
      * @param float $probability Probability at which you want to evaluate the distribution
950 946
      * @param float $alpha Parameter to the distribution
951 947
      * @param float $beta Parameter to the distribution
952
-     * @param float $rMin Minimum value
953
-     * @param float $rMax Maximum value
948
+     * @param integer $rMin Minimum value
949
+     * @param integer $rMax Maximum value
954 950
      *
955 951
      * @return float
956 952
      */
@@ -1210,7 +1206,6 @@  discard block
 block discarded – undo
1210 1206
      *
1211 1207
      * @category Statistical Functions
1212 1208
      *
1213
-     * @param mixed $arg,... Data values
1214 1209
      *
1215 1210
      * @return int
1216 1211
      */
@@ -1244,7 +1239,6 @@  discard block
 block discarded – undo
1244 1239
      *
1245 1240
      * @category Statistical Functions
1246 1241
      *
1247
-     * @param mixed $arg,... Data values
1248 1242
      *
1249 1243
      * @return int
1250 1244
      */
@@ -1274,7 +1268,6 @@  discard block
 block discarded – undo
1274 1268
      *
1275 1269
      * @category Statistical Functions
1276 1270
      *
1277
-     * @param mixed $arg,... Data values
1278 1271
      *
1279 1272
      * @return int
1280 1273
      */
@@ -1304,7 +1297,6 @@  discard block
 block discarded – undo
1304 1297
      *
1305 1298
      * @category Statistical Functions
1306 1299
      *
1307
-     * @param mixed $arg,... Data values
1308 1300
      * @param string $condition the criteria that defines which cells will be counted
1309 1301
      * @param mixed $aArgs
1310 1302
      *
@@ -1495,7 +1487,6 @@  discard block
 block discarded – undo
1495 1487
      *
1496 1488
      * @category Statistical Functions
1497 1489
      *
1498
-     * @param mixed $arg,... Data values
1499 1490
      *
1500 1491
      * @return float
1501 1492
      */
@@ -1789,7 +1780,6 @@  discard block
 block discarded – undo
1789 1780
      *
1790 1781
      * @category Statistical Functions
1791 1782
      *
1792
-     * @param mixed $arg,... Data values
1793 1783
      *
1794 1784
      * @return float
1795 1785
      */
@@ -1855,7 +1845,6 @@  discard block
 block discarded – undo
1855 1845
      *
1856 1846
      * @category Statistical Functions
1857 1847
      *
1858
-     * @param mixed $arg,... Data values
1859 1848
      *
1860 1849
      * @return float
1861 1850
      */
@@ -2016,8 +2005,6 @@  discard block
 block discarded – undo
2016 2005
      *
2017 2006
      * @category Statistical Functions
2018 2007
      *
2019
-     * @param mixed $arg,... Data values
2020
-     * @param int $entry Position (ordered from the largest) in the array or range of data to return
2021 2008
      *
2022 2009
      * @return float
2023 2010
      */
@@ -2253,7 +2240,6 @@  discard block
 block discarded – undo
2253 2240
      *
2254 2241
      * @category Statistical Functions
2255 2242
      *
2256
-     * @param mixed $arg,... Data values
2257 2243
      *
2258 2244
      * @return float
2259 2245
      */
@@ -2289,7 +2275,6 @@  discard block
 block discarded – undo
2289 2275
      *
2290 2276
      * @category Statistical Functions
2291 2277
      *
2292
-     * @param mixed $arg,... Data values
2293 2278
      *
2294 2279
      * @return float
2295 2280
      */
@@ -2330,7 +2315,6 @@  discard block
 block discarded – undo
2330 2315
      *
2331 2316
      * @category Mathematical and Trigonometric Functions
2332 2317
      *
2333
-     * @param mixed $arg,... Data values
2334 2318
      * @param string $condition the criteria that defines which cells will be checked
2335 2319
      * @param mixed $aArgs
2336 2320
      * @param mixed $sumArgs
@@ -2373,7 +2357,6 @@  discard block
 block discarded – undo
2373 2357
      *
2374 2358
      * @category Statistical Functions
2375 2359
      *
2376
-     * @param mixed $arg,... Data values
2377 2360
      *
2378 2361
      * @return float
2379 2362
      */
@@ -2417,7 +2400,6 @@  discard block
 block discarded – undo
2417 2400
      *
2418 2401
      * @category Statistical Functions
2419 2402
      *
2420
-     * @param mixed $arg,... Data values
2421 2403
      *
2422 2404
      * @return float
2423 2405
      */
@@ -2453,7 +2435,6 @@  discard block
 block discarded – undo
2453 2435
      *
2454 2436
      * @category Statistical Functions
2455 2437
      *
2456
-     * @param mixed $arg,... Data values
2457 2438
      *
2458 2439
      * @return float
2459 2440
      */
@@ -2494,7 +2475,6 @@  discard block
 block discarded – undo
2494 2475
      *
2495 2476
      * @category Mathematical and Trigonometric Functions
2496 2477
      *
2497
-     * @param mixed $arg,... Data values
2498 2478
      * @param string $condition the criteria that defines which cells will be checked
2499 2479
      * @param mixed $aArgs
2500 2480
      * @param mixed $sumArgs
@@ -2574,7 +2554,6 @@  discard block
 block discarded – undo
2574 2554
      *
2575 2555
      * @category Statistical Functions
2576 2556
      *
2577
-     * @param mixed $arg,... Data values
2578 2557
      *
2579 2558
      * @return float
2580 2559
      */
@@ -2748,8 +2727,6 @@  discard block
 block discarded – undo
2748 2727
      *
2749 2728
      * @category Statistical Functions
2750 2729
      *
2751
-     * @param mixed $arg,... Data values
2752
-     * @param float $entry Percentile value in the range 0..1, inclusive.
2753 2730
      *
2754 2731
      * @return float
2755 2732
      */
@@ -2800,7 +2777,7 @@  discard block
 block discarded – undo
2800 2777
      * @param number the number of significant digits for the returned percentage value
2801 2778
      * @param mixed $valueSet
2802 2779
      * @param mixed $value
2803
-     * @param mixed $significance
2780
+     * @param integer $significance
2804 2781
      *
2805 2782
      * @return float
2806 2783
      */
@@ -2920,8 +2897,6 @@  discard block
 block discarded – undo
2920 2897
      *
2921 2898
      * @category Statistical Functions
2922 2899
      *
2923
-     * @param mixed $arg,... Data values
2924
-     * @param int $entry Quartile value in the range 1..3, inclusive.
2925 2900
      *
2926 2901
      * @return float
2927 2902
      */
@@ -2954,7 +2929,7 @@  discard block
 block discarded – undo
2954 2929
      * @param mixed Order to sort the values in the value set
2955 2930
      * @param mixed $value
2956 2931
      * @param mixed $valueSet
2957
-     * @param mixed $order
2932
+     * @param integer $order
2958 2933
      *
2959 2934
      * @return float
2960 2935
      */
@@ -3095,8 +3070,6 @@  discard block
 block discarded – undo
3095 3070
      *
3096 3071
      * @category Statistical Functions
3097 3072
      *
3098
-     * @param mixed $arg,... Data values
3099
-     * @param int $entry Position (ordered from the smallest) in the array or range of data to return
3100 3073
      *
3101 3074
      * @return float
3102 3075
      */
@@ -3167,7 +3140,6 @@  discard block
 block discarded – undo
3167 3140
      *
3168 3141
      * @category Statistical Functions
3169 3142
      *
3170
-     * @param mixed $arg,... Data values
3171 3143
      *
3172 3144
      * @return float
3173 3145
      */
@@ -3216,7 +3188,6 @@  discard block
 block discarded – undo
3216 3188
      *
3217 3189
      * @category Statistical Functions
3218 3190
      *
3219
-     * @param mixed $arg,... Data values
3220 3191
      *
3221 3192
      * @return float
3222 3193
      */
@@ -3268,7 +3239,6 @@  discard block
 block discarded – undo
3268 3239
      *
3269 3240
      * @category Statistical Functions
3270 3241
      *
3271
-     * @param mixed $arg,... Data values
3272 3242
      *
3273 3243
      * @return float
3274 3244
      */
@@ -3315,7 +3285,6 @@  discard block
 block discarded – undo
3315 3285
      *
3316 3286
      * @category Statistical Functions
3317 3287
      *
3318
-     * @param mixed $arg,... Data values
3319 3288
      *
3320 3289
      * @return float
3321 3290
      */
@@ -3559,8 +3528,6 @@  discard block
 block discarded – undo
3559 3528
      *
3560 3529
      * @category Statistical Functions
3561 3530
      *
3562
-     * @param mixed $arg,... Data values
3563
-     * @param float $discard Percentage to discard
3564 3531
      *
3565 3532
      * @return float
3566 3533
      */
@@ -3605,7 +3572,6 @@  discard block
 block discarded – undo
3605 3572
      *
3606 3573
      * @category Statistical Functions
3607 3574
      *
3608
-     * @param mixed $arg,... Data values
3609 3575
      *
3610 3576
      * @return float
3611 3577
      */
@@ -3649,7 +3615,6 @@  discard block
 block discarded – undo
3649 3615
      *
3650 3616
      * @category Statistical Functions
3651 3617
      *
3652
-     * @param mixed $arg,... Data values
3653 3618
      *
3654 3619
      * @return float
3655 3620
      */
@@ -3702,7 +3667,6 @@  discard block
 block discarded – undo
3702 3667
      *
3703 3668
      * @category Statistical Functions
3704 3669
      *
3705
-     * @param mixed $arg,... Data values
3706 3670
      *
3707 3671
      * @return float
3708 3672
      */
@@ -3747,7 +3711,6 @@  discard block
 block discarded – undo
3747 3711
      *
3748 3712
      * @category Statistical Functions
3749 3713
      *
3750
-     * @param mixed $arg,... Data values
3751 3714
      *
3752 3715
      * @return float
3753 3716
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      * This function converts a number to text using currency format, with the decimals rounded to the specified place.
170 170
      * The format used is $#,##0.00_);($#,##0.00)..
171 171
      *
172
-     * @param float $value The value to format
172
+     * @param integer $value The value to format
173 173
      * @param int $decimals The number of digits to display to the right of the decimal point.
174 174
      *                                    If decimals is negative, number is rounded to the left of the decimal point.
175 175
      *                                    If you omit decimals, it is assumed to be 2
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -781,7 +781,7 @@
 block discarded – undo
781 781
      *
782 782
      * @param string $pRange Cell range (e.g. A1:A1)
783 783
      *
784
-     * @return array Range coordinates array(Start Cell, End Cell)
784
+     * @return integer Range coordinates array(Start Cell, End Cell)
785 785
      *                    where Start Cell and End Cell are arrays (Column ID, Row Number)
786 786
      */
787 787
     public static function getRangeBoundaries($pRange = 'A1:A1')
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Date.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     /**
168 168
      * Convert a MS serialized datetime value from Excel to a PHP Date/Time object.
169 169
      *
170
-     * @param int|float $excelTimestamp MS Excel serialized date/time value
170
+     * @param integer $excelTimestamp MS Excel serialized date/time value
171 171
      * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp,
172 172
      *                                                                        if you don't want to treat it as a UTC value
173 173
      *                                                                    Use the default (UST) unless you absolutely need a conversion
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     /**
209 209
      * Convert a MS serialized datetime value from Excel to a unix timestamp.
210 210
      *
211
-     * @param int|float $excelTimestamp MS Excel serialized date/time value
211
+     * @param integer $excelTimestamp MS Excel serialized date/time value
212 212
      * @param \DateTimeZone|string|null $timeZone The timezone to assume for the Excel timestamp,
213 213
      *                                                                        if you don't want to treat it as a UTC value
214 214
      *                                                                    Use the default (UST) unless you absolutely need a conversion
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     /**
227 227
      * Convert a date from PHP to an MS Excel serialized date/time value.
228 228
      *
229
-     * @param mixed $dateValue Unix Timestamp or PHP DateTime object or a string
229
+     * @param integer $dateValue Unix Timestamp or PHP DateTime object or a string
230 230
      *
231 231
      * @return float|bool Excel date/time value
232 232
      *                                  or boolean FALSE on failure
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     /**
267 267
      * Convert a Unix timestamp to an MS Excel serialized date/time value.
268 268
      *
269
-     * @param \DateTimeInterface $dateValue Unix Timestamp
269
+     * @param integer $dateValue Unix Timestamp
270 270
      *
271 271
      * @return float MS Excel serialized date/time value
272 272
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/Font.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
      * Calculate an (approximate) OpenXML column width, based on font size and text contained.
237 237
      *
238 238
      * @param \PhpOffice\PhpSpreadsheet\Style\Font $font Font object
239
-     * @param \PhpOffice\PhpSpreadsheet\RichText|string $cellText Text to calculate width
239
+     * @param string $cellText Text to calculate width
240 240
      * @param int $rotation Rotation angle
241 241
      * @param \PhpOffice\PhpSpreadsheet\Style\Font|null $defaultFont Font object
242 242
      *
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/EigenvalueDecomposition.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -819,7 +819,7 @@  discard block
 block discarded – undo
819 819
     /**
820 820
      * Return the eigenvector matrix.
821 821
      *
822
-     * @return V
822
+     * @return Matrix
823 823
      */
824 824
     public function getV()
825 825
     {
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
     /**
850 850
      * Return the block diagonal eigenvalue matrix.
851 851
      *
852
-     * @return D
852
+     * @return Matrix
853 853
      */
854 854
     public function getD()
855 855
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/LUDecomposition.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
     /**
242 242
      * Solve A*X = B.
243 243
      *
244
-     * @param $B a Matrix with as many rows as A and any number of columns
244
+     * @param Matrix $B a Matrix with as many rows as A and any number of columns
245 245
      *
246 246
      * @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception illegalArgumentException Matrix row dimensions must agree
247 247
      * @throws \PhpOffice\PhpSpreadsheet\Calculation\Exception runtimeException  Matrix is singular
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/Matrix.php 1 patch
Doc Comments   +2 added lines, -19 removed lines patch added patch discarded remove patch
@@ -149,10 +149,6 @@  discard block
 block discarded – undo
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 152
      *
157 153
      * @return Matrix Submatrix
158 154
      */
@@ -345,7 +341,7 @@  discard block
 block discarded – undo
345 341
      *
346 342
      * @param int $m Row dimension
347 343
      * @param int $n Column dimension
348
-     * @param mixed $c Diagonal value
344
+     * @param integer $c Diagonal value
349 345
      *
350 346
      * @return Matrix Diagonal matrix
351 347
      */
@@ -429,7 +425,7 @@  discard block
 block discarded – undo
429 425
      *
430 426
      *    Sum of diagonal elements
431 427
      *
432
-     * @return float Sum of diagonal elements
428
+     * @return integer Sum of diagonal elements
433 429
      */
434 430
     public function trace()
435 431
     {
@@ -458,7 +454,6 @@  discard block
 block discarded – undo
458 454
      *
459 455
      *    A + B
460 456
      *
461
-     * @param mixed $B Matrix/Array
462 457
      *
463 458
      * @return Matrix Sum
464 459
      */
@@ -500,7 +495,6 @@  discard block
 block discarded – undo
500 495
      *
501 496
      *    A = A + B
502 497
      *
503
-     * @param mixed $B Matrix/Array
504 498
      *
505 499
      * @return Matrix Sum
506 500
      */
@@ -556,7 +550,6 @@  discard block
 block discarded – undo
556 550
      *
557 551
      *    A - B
558 552
      *
559
-     * @param mixed $B Matrix/Array
560 553
      *
561 554
      * @return Matrix Sum
562 555
      */
@@ -598,7 +591,6 @@  discard block
 block discarded – undo
598 591
      *
599 592
      *    A = A - B
600 593
      *
601
-     * @param mixed $B Matrix/Array
602 594
      *
603 595
      * @return Matrix Sum
604 596
      */
@@ -655,7 +647,6 @@  discard block
 block discarded – undo
655 647
      *    Element-by-element multiplication
656 648
      *    Cij = Aij * Bij
657 649
      *
658
-     * @param mixed $B Matrix/Array
659 650
      *
660 651
      * @return Matrix Matrix Cij
661 652
      */
@@ -698,7 +689,6 @@  discard block
 block discarded – undo
698 689
      *    Element-by-element multiplication
699 690
      *    Aij = Aij * Bij
700 691
      *
701
-     * @param mixed $B Matrix/Array
702 692
      *
703 693
      * @return Matrix Matrix Aij
704 694
      */
@@ -755,7 +745,6 @@  discard block
 block discarded – undo
755 745
      *    Element-by-element right division
756 746
      *    A / B
757 747
      *
758
-     * @param Matrix $B Matrix B
759 748
      *
760 749
      * @return Matrix Division result
761 750
      */
@@ -817,7 +806,6 @@  discard block
 block discarded – undo
817 806
      *    Element-by-element right division
818 807
      *    Aij = Aij / Bij
819 808
      *
820
-     * @param mixed $B Matrix/Array
821 809
      *
822 810
      * @return Matrix Matrix Aij
823 811
      */
@@ -860,7 +848,6 @@  discard block
 block discarded – undo
860 848
      *    Element-by-element Left division
861 849
      *    A / B
862 850
      *
863
-     * @param Matrix $B Matrix B
864 851
      *
865 852
      * @return Matrix Division result
866 853
      */
@@ -903,7 +890,6 @@  discard block
 block discarded – undo
903 890
      *    Element-by-element Left division
904 891
      *    Aij = Aij / Bij
905 892
      *
906
-     * @param mixed $B Matrix/Array
907 893
      *
908 894
      * @return Matrix Matrix Aij
909 895
      */
@@ -945,7 +931,6 @@  discard block
 block discarded – undo
945 931
      *
946 932
      *    Matrix multiplication
947 933
      *
948
-     * @param mixed $n Matrix/Array/Scalar
949 934
      *
950 935
      * @return Matrix Product
951 936
      */
@@ -1038,7 +1023,6 @@  discard block
 block discarded – undo
1038 1023
      *
1039 1024
      *    A = A ^ B
1040 1025
      *
1041
-     * @param mixed $B Matrix/Array
1042 1026
      *
1043 1027
      * @return Matrix Sum
1044 1028
      */
@@ -1094,7 +1078,6 @@  discard block
 block discarded – undo
1094 1078
      *
1095 1079
      *    A = A & B
1096 1080
      *
1097
-     * @param mixed $B Matrix/Array
1098 1081
      *
1099 1082
      * @return Matrix Sum
1100 1083
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/SingularValueDecomposition.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
     /**
442 442
      * Return the left singular vectors.
443 443
      *
444
-     * @return U
444
+     * @return Matrix
445 445
      */
446 446
     public function getU()
447 447
     {
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
     /**
452 452
      * Return the right singular vectors.
453 453
      *
454
-     * @return V
454
+     * @return Matrix
455 455
      */
456 456
     public function getV()
457 457
     {
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
     /**
472 472
      * Return the diagonal matrix of singular values.
473 473
      *
474
-     * @return S
474
+     * @return Matrix
475 475
      */
476 476
     public function getS()
477 477
     {
Please login to merge, or discard this patch.