Completed
Push — develop ( 03f96a...8c66af )
by Adrien
19:36
created
src/PhpSpreadsheet/Shared/JAMA/Matrix.php 1 patch
Doc Comments   +2 added lines, -47 removed lines patch added patch discarded remove patch
@@ -149,12 +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
-     *
157
-     *    @return Matrix Submatrix
158 152
      */
159 153
     public function getMatrix()
160 154
     {
@@ -365,7 +359,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation.php 2 patches
Doc Comments   +19 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2072,7 +2072,6 @@  discard block
 block discarded – undo
2072 2072
     /**
2073 2073
      * Unset an instance of this class.
2074 2074
      *
2075
-     * @param   Spreadsheet $spreadsheet  Injected spreadsheet identifying the instance to unset
2076 2075
      */
2077 2076
     public function __destruct()
2078 2077
     {
@@ -2326,6 +2325,10 @@  discard block
 block discarded – undo
2326 2325
         return false;
2327 2326
     }
2328 2327
 
2328
+    /**
2329
+     * @param string $fromSeparator
2330
+     * @param string $toSeparator
2331
+     */
2329 2332
     public static function translateSeparator($fromSeparator, $toSeparator, $formula, &$inBraces)
2330 2333
     {
2331 2334
         $strlen = mb_strlen($formula);
@@ -2669,6 +2672,9 @@  discard block
 block discarded – undo
2669 2672
         return $result;
2670 2673
     }
2671 2674
 
2675
+    /**
2676
+     * @param string $cellReference
2677
+     */
2672 2678
     public function getValueFromCache($cellReference, &$cellValue)
2673 2679
     {
2674 2680
         // Is calculation cacheing enabled?
@@ -2812,7 +2818,7 @@  discard block
 block discarded – undo
2812 2818
      *
2813 2819
      * @param    mixed        &$matrix        matrix operand
2814 2820
      *
2815
-     * @return    int[]        An array comprising the number of rows, and number of columns
2821
+     * @return    integer[]        An array comprising the number of rows, and number of columns
2816 2822
      */
2817 2823
     private static function getMatrixDimensions(&$matrix)
2818 2824
     {
@@ -2997,6 +3003,9 @@  discard block
 block discarded – undo
2997 3003
         }
2998 3004
     }
2999 3005
 
3006
+    /**
3007
+     * @param string $formula
3008
+     */
3000 3009
     private function convertMatrixReferences($formula)
3001 3010
     {
3002 3011
         static $matrixReplaceFrom = ['{', ';', '}'];
@@ -3085,6 +3094,10 @@  discard block
 block discarded – undo
3085 3094
     ];
3086 3095
 
3087 3096
     // Convert infix to postfix notation
3097
+
3098
+    /**
3099
+     * @param string $formula
3100
+     */
3088 3101
     private function _parseFormula($formula, Cell $pCell = null)
3089 3102
     {
3090 3103
         if (($formula = $this->convertMatrixReferences(trim($formula))) === false) {
@@ -3820,6 +3833,9 @@  discard block
 block discarded – undo
3820 3833
         return true;
3821 3834
     }
3822 3835
 
3836
+    /**
3837
+     * @param string|null $cellID
3838
+     */
3823 3839
     private function executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays = false)
3824 3840
     {
3825 3841
         //    If we're dealing with matrix operations, we want a matrix result
@@ -3960,7 +3976,7 @@  discard block
 block discarded – undo
3960 3976
 
3961 3977
     /**
3962 3978
      * @param string $matrixFunction
3963
-     * @param mixed $cellID
3979
+     * @param string|null $cellID
3964 3980
      * @param mixed $operand1
3965 3981
      * @param mixed $operand2
3966 3982
      * @param mixed $operation
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3115,7 +3115,7 @@
 block discarded – undo
3115 3115
         //    The guts of the lexical parser
3116 3116
         //    Loop through the formula extracting each operator and operand in turn
3117 3117
         while (true) {
3118
-            $opCharacter = $formula[$index];    //    Get the first character of the value at the current index position
3118
+            $opCharacter = $formula[$index]; //    Get the first character of the value at the current index position
3119 3119
             if ((isset(self::$comparisonOperators[$opCharacter])) && (strlen($formula) > $index) && (isset(self::$comparisonOperators[$formula[$index + 1]]))) {
3120 3120
                 $opCharacter .= $formula[++$index];
3121 3121
             }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial.php 1 patch
Doc Comments   +48 added lines, -41 removed lines patch added patch discarded remove patch
@@ -60,6 +60,10 @@  discard block
 block discarded – undo
60 60
         return $testDate->format('d') == 1;
61 61
     }
62 62
 
63
+    /**
64
+     * @param integer $frequency
65
+     * @param boolean $next
66
+     */
63 67
     private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next)
64 68
     {
65 69
         $months = 12 / $frequency;
@@ -81,6 +85,9 @@  discard block
 block discarded – undo
81 85
         return \PhpOffice\PhpSpreadsheet\Shared\Date::PHPToExcel($result);
82 86
     }
83 87
 
88
+    /**
89
+     * @param integer $frequency
90
+     */
84 91
     private static function isValidFrequency($frequency)
85 92
     {
86 93
         if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) {
@@ -159,7 +166,7 @@  discard block
 block discarded – undo
159 166
      *                                    The security settlement date is the date after the issue date
160 167
      *                                    when the security is traded to the buyer.
161 168
      * @param    float    $rate            the security's annual coupon rate
162
-     * @param    float    $par            The security's par value.
169
+     * @param    integer    $par            The security's par value.
163 170
      *                                    If you omit par, ACCRINT uses $1,000.
164 171
      * @param    int    $frequency        the number of coupon payments per year.
165 172
      *                                    Valid frequency values are:
@@ -232,8 +239,8 @@  discard block
 block discarded – undo
232 239
      * @param mixed $issue
233 240
      * @param mixed $settlement
234 241
      * @param mixed $rate
235
-     * @param mixed $par
236
-     * @param mixed $basis
242
+     * @param integer $par
243
+     * @param integer $basis
237 244
      *
238 245
      * @return    float
239 246
      */
@@ -299,7 +306,7 @@  discard block
 block discarded – undo
299 306
      * @param mixed $salvage
300 307
      * @param mixed $period
301 308
      * @param mixed $rate
302
-     * @param mixed $basis
309
+     * @param integer $basis
303 310
      *
304 311
      * @return    float
305 312
      */
@@ -384,7 +391,7 @@  discard block
 block discarded – undo
384 391
      * @param mixed $salvage
385 392
      * @param mixed $period
386 393
      * @param mixed $rate
387
-     * @param mixed $basis
394
+     * @param integer $basis
388 395
      *
389 396
      * @return    float
390 397
      */
@@ -454,8 +461,8 @@  discard block
 block discarded – undo
454 461
      *                                        4                European 30/360
455 462
      * @param mixed $settlement
456 463
      * @param mixed $maturity
457
-     * @param mixed $frequency
458
-     * @param mixed $basis
464
+     * @param integer $frequency
465
+     * @param integer $basis
459 466
      *
460 467
      * @return    float
461 468
      */
@@ -518,7 +525,7 @@  discard block
 block discarded – undo
518 525
      * @param int $frequency
519 526
      * @param mixed $settlement
520 527
      * @param mixed $maturity
521
-     * @param mixed $basis
528
+     * @param integer $basis
522 529
      *
523 530
      * @return    float
524 531
      */
@@ -597,8 +604,8 @@  discard block
 block discarded – undo
597 604
      *                                        4                European 30/360
598 605
      * @param mixed $settlement
599 606
      * @param mixed $maturity
600
-     * @param mixed $frequency
601
-     * @param mixed $basis
607
+     * @param integer $frequency
608
+     * @param integer $basis
602 609
      *
603 610
      * @return    float
604 611
      */
@@ -661,7 +668,7 @@  discard block
 block discarded – undo
661 668
      * @param mixed $settlement
662 669
      * @param mixed $maturity
663 670
      * @param mixed $frequency
664
-     * @param mixed $basis
671
+     * @param integer $basis
665 672
      *
666 673
      * @return    mixed    Excel date/time serial value, PHP date/time serial value or PHP date/time object,
667 674
      *                        depending on the value of the ReturnDateType flag
@@ -722,8 +729,8 @@  discard block
 block discarded – undo
722 729
      *                                        4                European 30/360
723 730
      * @param mixed $settlement
724 731
      * @param mixed $maturity
725
-     * @param mixed $frequency
726
-     * @param mixed $basis
732
+     * @param integer $frequency
733
+     * @param integer $basis
727 734
      *
728 735
      * @return    int
729 736
      */
@@ -799,7 +806,7 @@  discard block
 block discarded – undo
799 806
      * @param mixed $settlement
800 807
      * @param mixed $maturity
801 808
      * @param mixed $frequency
802
-     * @param mixed $basis
809
+     * @param integer $basis
803 810
      *
804 811
      * @return    mixed    Excel date/time serial value, PHP date/time serial value or PHP date/time object,
805 812
      *                        depending on the value of the ReturnDateType flag
@@ -951,7 +958,7 @@  discard block
 block discarded – undo
951 958
      * @param mixed $salvage
952 959
      * @param mixed $life
953 960
      * @param mixed $period
954
-     * @param mixed $month
961
+     * @param integer $month
955 962
      *
956 963
      * @return    float
957 964
      */
@@ -1026,7 +1033,7 @@  discard block
 block discarded – undo
1026 1033
      * @param mixed $salvage
1027 1034
      * @param mixed $life
1028 1035
      * @param mixed $period
1029
-     * @param mixed $factor
1036
+     * @param double $factor
1030 1037
      *
1031 1038
      * @return    float
1032 1039
      */
@@ -1095,7 +1102,7 @@  discard block
 block discarded – undo
1095 1102
      * @param mixed $maturity
1096 1103
      * @param mixed $price
1097 1104
      * @param mixed $redemption
1098
-     * @param mixed $basis
1105
+     * @param integer $basis
1099 1106
      *
1100 1107
      * @return    float
1101 1108
      */
@@ -1214,7 +1221,7 @@  discard block
 block discarded – undo
1214 1221
      *
1215 1222
      * @category Financial Functions
1216 1223
      *
1217
-     * @param    float    $nominal_rate        Nominal interest rate
1224
+     * @param    integer    $nominal_rate        Nominal interest rate
1218 1225
      * @param    int    $npery                Number of compounding payments per year
1219 1226
      *
1220 1227
      * @return    float
@@ -1242,12 +1249,12 @@  discard block
 block discarded – undo
1242 1249
      *
1243 1250
      * @category Financial Functions
1244 1251
      *
1245
-     * @param    float    $rate    The interest rate per period
1252
+     * @param    integer    $rate    The interest rate per period
1246 1253
      * @param    int        $nper    Total number of payment periods in an annuity
1247
-     * @param    float    $pmt    The payment made each period: it cannot change over the
1254
+     * @param    integer    $pmt    The payment made each period: it cannot change over the
1248 1255
      *                            life of the annuity. Typically, pmt contains principal
1249 1256
      *                            and interest but no other fees or taxes.
1250
-     * @param    float    $pv        present Value, or the lump-sum amount that a series of
1257
+     * @param    integer    $pv        present Value, or the lump-sum amount that a series of
1251 1258
      *                            future payments is worth right now
1252 1259
      * @param    int    $type    A number 0 or 1 and indicates when payments are due:
1253 1260
      *                                0 or omitted    At the end of the period.
@@ -1365,7 +1372,7 @@  discard block
 block discarded – undo
1365 1372
      * @param    int        $per    Period for which we want to find the interest
1366 1373
      * @param    int        $nper    Number of periods
1367 1374
      * @param    float    $pv        Present Value
1368
-     * @param    float    $fv        Future Value
1375
+     * @param    integer    $fv        Future Value
1369 1376
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1370 1377
      *
1371 1378
      * @return    float
@@ -1560,7 +1567,7 @@  discard block
 block discarded – undo
1560 1567
      *
1561 1568
      * Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
1562 1569
      *
1563
-     * @param    float    $effect_rate    Effective interest rate
1570
+     * @param    integer    $effect_rate    Effective interest rate
1564 1571
      * @param    int        $npery            Number of compounding payments per year
1565 1572
      *
1566 1573
      * @return    float
@@ -1584,10 +1591,10 @@  discard block
 block discarded – undo
1584 1591
      *
1585 1592
      * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate.
1586 1593
      *
1587
-     * @param    float    $rate    Interest rate per period
1594
+     * @param    integer    $rate    Interest rate per period
1588 1595
      * @param    int        $pmt    Periodic payment (annuity)
1589
-     * @param    float    $pv        Present Value
1590
-     * @param    float    $fv        Future Value
1596
+     * @param    integer    $pv        Present Value
1597
+     * @param    integer    $fv        Future Value
1591 1598
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1592 1599
      *
1593 1600
      * @return    float
@@ -1653,10 +1660,10 @@  discard block
 block discarded – undo
1653 1660
      *
1654 1661
      * Returns the constant payment (annuity) for a cash flow with a constant interest rate.
1655 1662
      *
1656
-     * @param    float    $rate    Interest rate per period
1663
+     * @param    integer    $rate    Interest rate per period
1657 1664
      * @param    int        $nper    Number of periods
1658
-     * @param    float    $pv        Present Value
1659
-     * @param    float    $fv        Future Value
1665
+     * @param    integer    $pv        Present Value
1666
+     * @param    integer    $fv        Future Value
1660 1667
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1661 1668
      *
1662 1669
      * @return    float
@@ -1691,7 +1698,7 @@  discard block
 block discarded – undo
1691 1698
      * @param    int        $per    Period for which we want to find the interest
1692 1699
      * @param    int        $nper    Number of periods
1693 1700
      * @param    float    $pv        Present Value
1694
-     * @param    float    $fv        Future Value
1701
+     * @param    integer    $fv        Future Value
1695 1702
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1696 1703
      *
1697 1704
      * @return    float
@@ -1781,7 +1788,7 @@  discard block
 block discarded – undo
1781 1788
      * @param mixed $maturity
1782 1789
      * @param mixed $discount
1783 1790
      * @param mixed $redemption
1784
-     * @param mixed $basis
1791
+     * @param integer $basis
1785 1792
      *
1786 1793
      * @return    float
1787 1794
      */
@@ -1833,7 +1840,7 @@  discard block
 block discarded – undo
1833 1840
      * @param mixed $issue
1834 1841
      * @param mixed $rate
1835 1842
      * @param mixed $yield
1836
-     * @param mixed $basis
1843
+     * @param integer $basis
1837 1844
      *
1838 1845
      * @return    float
1839 1846
      */
@@ -1887,10 +1894,10 @@  discard block
 block discarded – undo
1887 1894
      *
1888 1895
      * Returns the Present Value of a cash flow with constant payments and interest rate (annuities).
1889 1896
      *
1890
-     * @param    float    $rate    Interest rate per period
1897
+     * @param    integer    $rate    Interest rate per period
1891 1898
      * @param    int        $nper    Number of periods
1892
-     * @param    float    $pmt    Periodic payment (annuity)
1893
-     * @param    float    $fv        Future Value
1899
+     * @param    integer    $pmt    Periodic payment (annuity)
1900
+     * @param    integer    $fv        Future Value
1894 1901
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1895 1902
      *
1896 1903
      * @return    float
@@ -1947,9 +1954,9 @@  discard block
 block discarded – undo
1947 1954
      * @param mixed $nper
1948 1955
      * @param mixed $pmt
1949 1956
      * @param mixed $pv
1950
-     * @param mixed $fv
1951
-     * @param mixed $type
1952
-     * @param mixed $guess
1957
+     * @param double $fv
1958
+     * @param integer $type
1959
+     * @param double $guess
1953 1960
      *
1954 1961
      * @return    float
1955 1962
      **/
@@ -2018,7 +2025,7 @@  discard block
 block discarded – undo
2018 2025
      * @param mixed $maturity
2019 2026
      * @param mixed $investment
2020 2027
      * @param mixed $discount
2021
-     * @param mixed $basis
2028
+     * @param integer $basis
2022 2029
      *
2023 2030
      * @return    float
2024 2031
      */
@@ -2388,7 +2395,7 @@  discard block
 block discarded – undo
2388 2395
      * @param mixed $maturity
2389 2396
      * @param mixed $price
2390 2397
      * @param mixed $redemption
2391
-     * @param mixed $basis
2398
+     * @param integer $basis
2392 2399
      *
2393 2400
      * @return    float
2394 2401
      */
@@ -2445,7 +2452,7 @@  discard block
 block discarded – undo
2445 2452
      * @param mixed $issue
2446 2453
      * @param mixed $rate
2447 2454
      * @param mixed $price
2448
-     * @param mixed $basis
2455
+     * @param integer $basis
2449 2456
      *
2450 2457
      * @return    float
2451 2458
      */
Please login to merge, or discard this patch.
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
      *
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      *
362 362
      * @param    cellAddress        The reference from which you want to base the offset. Reference must refer to a cell or
363 363
      *                                range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value.
364
-     * @param    rows            The number of rows, up or down, that you want the upper-left cell to refer to.
364
+     * @param    rows            integer number of rows, up or down, that you want the upper-left cell to refer to.
365 365
      *                                Using 5 as the rows argument specifies that the upper-left cell in the reference is
366 366
      *                                five rows below reference. Rows can be positive (which means below the starting reference)
367 367
      *                                or negative (which means above the starting reference).
@@ -373,8 +373,8 @@  discard block
 block discarded – undo
373 373
      * @param    height            The height, in number of rows, that you want the returned reference to be. Height must be a positive number.
374 374
      * @param    width            The width, in number of columns, that you want the returned reference to be. Width must be a positive number.
375 375
      * @param null|mixed $cellAddress
376
-     * @param mixed $rows
377
-     * @param mixed $columns
376
+     * @param integer $rows
377
+     * @param integer $columns
378 378
      * @param null|mixed $height
379 379
      * @param null|mixed $width
380 380
      *
@@ -504,10 +504,10 @@  discard block
 block discarded – undo
504 504
      *
505 505
      * @param    lookup_value    The value that you want to match in lookup_array
506 506
      * @param    lookup_array    The range of cells being searched
507
-     * @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.
507
+     * @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.
508 508
      * @param mixed $lookup_value
509 509
      * @param mixed $lookup_array
510
-     * @param mixed $match_type
510
+     * @param integer $match_type
511 511
      *
512 512
      * @return    int            The relative position of the found item
513 513
      */
@@ -604,8 +604,8 @@  discard block
 block discarded – undo
604 604
      * @param    row_num            The row in array from which to return a value. If row_num is omitted, column_num is required.
605 605
      * @param    column_num        The column in array from which to return a value. If column_num is omitted, row_num is required.
606 606
      * @param mixed $arrayValues
607
-     * @param mixed $rowNum
608
-     * @param mixed $columnNum
607
+     * @param integer $rowNum
608
+     * @param integer $columnNum
609 609
      *
610 610
      * @return    mixed            the value of a specified cell or array of cells
611 611
      */
@@ -701,11 +701,11 @@  discard block
 block discarded – undo
701 701
      *
702 702
      * @param    lookup_value    The value that you want to match in lookup_array
703 703
      * @param    lookup_array    The range of cells being searched
704
-     * @param    index_number    The column number in table_array from which the matching value must be returned. The first column is 1.
704
+     * @param    index_number    integer column number in table_array from which the matching value must be returned. The first column is 1.
705 705
      * @param    not_exact_match    determines if you are looking for an exact match based on lookup_value
706 706
      * @param mixed $lookup_value
707 707
      * @param mixed $lookup_array
708
-     * @param mixed $index_number
708
+     * @param integer $index_number
709 709
      * @param mixed $not_exact_match
710 710
      *
711 711
      * @return    mixed            The value of the found cell
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig.php 1 patch
Doc Comments   +11 added lines, -21 removed lines patch added patch discarded remove patch
@@ -52,6 +52,10 @@  discard block
 block discarded – undo
52 52
         return [(int) $value];
53 53
     }
54 54
 
55
+    /**
56
+     * @param integer $num
57
+     * @param integer $n
58
+     */
55 59
     private static function romanCut($num, $n)
56 60
     {
57 61
         return ($num - ($num % $n)) / $n;
@@ -343,7 +347,6 @@  discard block
 block discarded – undo
343 347
      *
344 348
      * @category Mathematical and Trigonometric Functions
345 349
      *
346
-     * @param    mixed    $arg,...        Data values
347 350
      *
348 351
      * @return    int                    Greatest Common Divisor
349 352
      */
@@ -452,7 +455,6 @@  discard block
 block discarded – undo
452 455
      *
453 456
      * @category Mathematical and Trigonometric Functions
454 457
      *
455
-     * @param    mixed    $arg,...        Data values
456 458
      *
457 459
      * @return    int        Lowest Common Multiplier
458 460
      */
@@ -504,7 +506,7 @@  discard block
 block discarded – undo
504 506
      * @category Mathematical and Trigonometric Functions
505 507
      *
506 508
      * @param    float    $number        The positive real number for which you want the logarithm
507
-     * @param    float    $base        The base of the logarithm. If base is omitted, it is assumed to be 10.
509
+     * @param    integer    $base        The base of the logarithm. If base is omitted, it is assumed to be 10.
508 510
      *
509 511
      * @return    float
510 512
      */
@@ -822,8 +824,8 @@  discard block
 block discarded – undo
822 824
      *
823 825
      * Computes x raised to the power y.
824 826
      *
825
-     * @param    float        $x
826
-     * @param    float        $y
827
+     * @param    integer        $x
828
+     * @param    integer        $y
827 829
      *
828 830
      * @return    float
829 831
      */
@@ -855,7 +857,6 @@  discard block
 block discarded – undo
855 857
      *
856 858
      * @category Mathematical and Trigonometric Functions
857 859
      *
858
-     * @param    mixed        $arg,...        Data values
859 860
      *
860 861
      * @return    float
861 862
      */
@@ -895,9 +896,8 @@  discard block
 block discarded – undo
895 896
      *
896 897
      * @category Mathematical and Trigonometric Functions
897 898
      *
898
-     * @param    mixed        $arg,...        Data values
899 899
      *
900
-     * @return    float
900
+     * @return    integer
901 901
      */
902 902
     public static function QUOTIENT()
903 903
     {
@@ -1035,9 +1035,6 @@  discard block
 block discarded – undo
1035 1035
      *
1036 1036
      * Returns the sum of a power series
1037 1037
      *
1038
-     * @param    float            $x    Input value to the power series
1039
-     * @param    float            $n    Initial power to which you want to raise $x
1040
-     * @param    float            $m    Step by which to increase $n for each term in the series
1041 1038
      * @param    array of mixed        Data Series
1042 1039
      *
1043 1040
      * @return    float
@@ -1181,7 +1178,6 @@  discard block
 block discarded – undo
1181 1178
      *
1182 1179
      * @category Mathematical and Trigonometric Functions
1183 1180
      *
1184
-     * @param    mixed        $arg,...        Data values
1185 1181
      *
1186 1182
      * @return    float
1187 1183
      */
@@ -1210,12 +1206,11 @@  discard block
 block discarded – undo
1210 1206
      *
1211 1207
      * @category Mathematical and Trigonometric Functions
1212 1208
      *
1213
-     * @param    mixed        $arg,...        Data values
1214 1209
      * @param    string        $condition        the criteria that defines which cells will be summed
1215 1210
      * @param mixed $aArgs
1216 1211
      * @param mixed $sumArgs
1217 1212
      *
1218
-     * @return    float
1213
+     * @return    integer
1219 1214
      */
1220 1215
     public static function SUMIF($aArgs, $condition, $sumArgs = [])
1221 1216
     {
@@ -1254,10 +1249,7 @@  discard block
 block discarded – undo
1254 1249
      *
1255 1250
      *    @category Mathematical and Trigonometric Functions
1256 1251
      *
1257
-     *    @param    mixed        $arg,...        Data values
1258
-     *    @param    string        $condition        the criteria that defines which cells will be summed
1259
-     *
1260
-     *    @return    float
1252
+     * @return integer
1261 1253
      */
1262 1254
     public static function SUMIFS()
1263 1255
     {
@@ -1302,7 +1294,6 @@  discard block
 block discarded – undo
1302 1294
      *
1303 1295
      * @category Mathematical and Trigonometric Functions
1304 1296
      *
1305
-     * @param    mixed        $arg,...        Data values
1306 1297
      *
1307 1298
      * @return    float
1308 1299
      */
@@ -1347,7 +1338,6 @@  discard block
 block discarded – undo
1347 1338
      *
1348 1339
      * @category Mathematical and Trigonometric Functions
1349 1340
      *
1350
-     * @param    mixed        $arg,...        Data values
1351 1341
      *
1352 1342
      * @return    float
1353 1343
      */
@@ -1446,7 +1436,7 @@  discard block
 block discarded – undo
1446 1436
      *
1447 1437
      * Truncates value to the number of fractional digits by number_digits.
1448 1438
      *
1449
-     * @param    float        $value
1439
+     * @param    integer        $value
1450 1440
      * @param    int            $digits
1451 1441
      *
1452 1442
      * @return    float        Truncated value
Please login to merge, or discard this patch.
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/Chart/DataSeriesValues.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,9 +80,9 @@
 block discarded – undo
80 80
      * Create a new DataSeriesValues object.
81 81
      *
82 82
      * @param string $dataSource
83
-     * @param mixed $dataType
83
+     * @param string $dataType
84 84
      * @param null|mixed $formatCode
85
-     * @param mixed $pointCount
85
+     * @param integer $pointCount
86 86
      * @param mixed $dataValues
87 87
      * @param null|mixed $marker
88 88
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/PlotArea.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     /**
65 65
      * Get Number of Plot Groups.
66 66
      *
67
-     * @return array of DataSeries
67
+     * @return integer of DataSeries
68 68
      */
69 69
     public function getPlotGroupCount()
70 70
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx/Theme.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * Create a new Theme.
59 59
      *
60
-     * @param mixed $themeName
61
-     * @param mixed $colourSchemeName
60
+     * @param string $themeName
61
+     * @param string $colourSchemeName
62 62
      * @param mixed $colourMap
63 63
      */
64 64
     public function __construct($themeName, $colourSchemeName, $colourMap)
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * Get colour Map Value by Position.
94 94
      *
95
-     * @param mixed $index
95
+     * @param integer $index
96 96
      *
97 97
      * @return string
98 98
      */
Please login to merge, or discard this patch.