Completed
Pull Request — develop (#242)
by Claudio
30:08 queued 23:24
created
src/PhpSpreadsheet/Writer/Html.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1188,7 +1188,7 @@
 block discarded – undo
1188 1188
      * @param Worksheet $pSheet \PhpOffice\PhpSpreadsheet\Worksheet
1189 1189
      * @param array $pValues Array containing cells in a row
1190 1190
      * @param int $pRow Row number (0-based)
1191
-     * @param mixed $cellType eg: 'td'
1191
+     * @param string $cellType eg: 'td'
1192 1192
      *
1193 1193
      * @throws WriterException
1194 1194
      *
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Layout.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     /**
237 237
      * Get X-Position.
238 238
      *
239
-     * @return number
239
+     * @return string
240 240
      */
241 241
     public function getXPosition()
242 242
     {
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
     /**
261 261
      * Get Y-Position.
262 262
      *
263
-     * @return number
263
+     * @return string
264 264
      */
265 265
     public function getYPosition()
266 266
     {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     /**
285 285
      * Get Width.
286 286
      *
287
-     * @return number
287
+     * @return string
288 288
      */
289 289
     public function getWidth()
290 290
     {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
     /**
309 309
      * Get Height.
310 310
      *
311
-     * @return number
311
+     * @return string
312 312
      */
313 313
     public function getHeight()
314 314
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1855,7 +1855,7 @@  discard block
 block discarded – undo
1855 1855
      *
1856 1856
      * @param string $complexNumber the complex number for which you want the real coefficient
1857 1857
      *
1858
-     * @return float
1858
+     * @return string
1859 1859
      */
1860 1860
     public static function IMREAL($complexNumber)
1861 1861
     {
@@ -2294,6 +2294,7 @@  discard block
 block discarded – undo
2294 2294
      *        IMSUM(complexNumber[,complexNumber[,...]])
2295 2295
      *
2296 2296
      * @param string ...$complexNumbers Series of complex numbers to add
2297
+     * @param string[] $complexNumbers
2297 2298
      *
2298 2299
      * @return string
2299 2300
      */
@@ -2334,6 +2335,7 @@  discard block
 block discarded – undo
2334 2335
      *        IMPRODUCT(complexNumber[,complexNumber[,...]])
2335 2336
      *
2336 2337
      * @param string ...$complexNumbers Series of complex numbers to multiply
2338
+     * @param string[] $complexNumbers
2337 2339
      *
2338 2340
      * @return string
2339 2341
      */
@@ -2377,7 +2379,7 @@  discard block
 block discarded – undo
2377 2379
      *        DELTA(a[,b])
2378 2380
      *
2379 2381
      * @param float $a the first number
2380
-     * @param float $b The second number. If omitted, b is assumed to be zero.
2382
+     * @param integer $b The second number. If omitted, b is assumed to be zero.
2381 2383
      *
2382 2384
      * @return int
2383 2385
      */
@@ -2400,7 +2402,7 @@  discard block
 block discarded – undo
2400 2402
      * functions you calculate the count of values that exceed a threshold.
2401 2403
      *
2402 2404
      * @param float $number the value to test against step
2403
-     * @param float $step The threshold value.
2405
+     * @param integer $step The threshold value.
2404 2406
      *                                    If you omit a value for step, GESTEP uses zero.
2405 2407
      *
2406 2408
      * @return int
Please login to merge, or discard this patch.
src/PhpSpreadsheet/NamedRange.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
      * Resolve a named range to a regular cell range.
213 213
      *
214 214
      * @param string $pNamedRange Named range
215
-     * @param null|Worksheet $pSheet Scope. Use null for global scope
215
+     * @param Worksheet $pSheet Scope. Use null for global scope
216 216
      *
217 217
      * @return NamedRange
218 218
      */
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
@@ -217,7 +217,7 @@
 block discarded – undo
217 217
      * Calculate an (approximate) OpenXML column width, based on font size and text contained.
218 218
      *
219 219
      * @param \PhpOffice\PhpSpreadsheet\Style\Font $font Font object
220
-     * @param RichText|string $cellText Text to calculate width
220
+     * @param string $cellText Text to calculate width
221 221
      * @param int $rotation Rotation angle
222 222
      * @param null|\PhpOffice\PhpSpreadsheet\Style\Font $defaultFont Font object
223 223
      *
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLE/PPS/Root.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * If a resource pointer to a stream created by fopen() is passed
60 60
      * it will be used, but you have to close such stream by yourself.
61 61
      *
62
-     * @param resource|string $filename the name of the file or stream where to save the OLE container
62
+     * @param string $filename the name of the file or stream where to save the OLE container
63 63
      *
64 64
      * @throws WriterException
65 65
      *
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      *
125 125
      * @param array $raList Reference to an array of PPS's
126 126
      *
127
-     * @return float[] The array of numbers
127
+     * @return double[] The array of numbers
128 128
      */
129 129
     public function _calcSize(&$raList)
130 130
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2664,7 +2664,7 @@  discard block
 block discarded – undo
2664 2664
 
2665 2665
     /**
2666 2666
      * @param string $cellReference
2667
-     * @param mixed $cellValue
2667
+     * @param boolean $cellValue
2668 2668
      */
2669 2669
     public function saveValueToCache($cellReference, $cellValue)
2670 2670
     {
@@ -2789,7 +2789,7 @@  discard block
 block discarded – undo
2789 2789
      *
2790 2790
      * @param mixed &$matrix matrix operand
2791 2791
      *
2792
-     * @return int[] An array comprising the number of rows, and number of columns
2792
+     * @return integer[] An array comprising the number of rows, and number of columns
2793 2793
      */
2794 2794
     private static function getMatrixDimensions(&$matrix)
2795 2795
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial.php 1 patch
Doc Comments   +49 added lines, -42 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      *
16 16
      * Returns a boolean TRUE/FALSE indicating if this date is the last date of the month
17 17
      *
18
-     * @param DateTime $testDate The date for testing
18
+     * @param \DateTime $testDate The date for testing
19 19
      *
20 20
      * @return bool
21 21
      */
@@ -24,6 +24,10 @@  discard block
 block discarded – undo
24 24
         return $testDate->format('d') == $testDate->format('t');
25 25
     }
26 26
 
27
+    /**
28
+     * @param integer $frequency
29
+     * @param boolean $next
30
+     */
27 31
     private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next)
28 32
     {
29 33
         $months = 12 / $frequency;
@@ -45,6 +49,9 @@  discard block
 block discarded – undo
45 49
         return Date::PHPToExcel($result);
46 50
     }
47 51
 
52
+    /**
53
+     * @param integer $frequency
54
+     */
48 55
     private static function isValidFrequency($frequency)
49 56
     {
50 57
         if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) {
@@ -126,7 +133,7 @@  discard block
 block discarded – undo
126 133
      *                                    The security settlement date is the date after the issue date
127 134
      *                                    when the security is traded to the buyer.
128 135
      * @param float $rate the security's annual coupon rate
129
-     * @param float $par The security's par value.
136
+     * @param integer $par The security's par value.
130 137
      *                                    If you omit par, ACCRINT uses $1,000.
131 138
      * @param int $frequency the number of coupon payments per year.
132 139
      *                                    Valid frequency values are:
@@ -199,8 +206,8 @@  discard block
 block discarded – undo
199 206
      * @param mixed $issue
200 207
      * @param mixed $settlement
201 208
      * @param mixed $rate
202
-     * @param mixed $par
203
-     * @param mixed $basis
209
+     * @param integer $par
210
+     * @param integer $basis
204 211
      *
205 212
      * @return float
206 213
      */
@@ -266,7 +273,7 @@  discard block
 block discarded – undo
266 273
      * @param mixed $salvage
267 274
      * @param mixed $period
268 275
      * @param mixed $rate
269
-     * @param mixed $basis
276
+     * @param integer $basis
270 277
      *
271 278
      * @return float
272 279
      */
@@ -351,7 +358,7 @@  discard block
 block discarded – undo
351 358
      * @param mixed $salvage
352 359
      * @param mixed $period
353 360
      * @param mixed $rate
354
-     * @param mixed $basis
361
+     * @param integer $basis
355 362
      *
356 363
      * @return float
357 364
      */
@@ -421,8 +428,8 @@  discard block
 block discarded – undo
421 428
      *                                        4                European 30/360
422 429
      * @param mixed $settlement
423 430
      * @param mixed $maturity
424
-     * @param mixed $frequency
425
-     * @param mixed $basis
431
+     * @param integer $frequency
432
+     * @param integer $basis
426 433
      *
427 434
      * @return float
428 435
      */
@@ -485,7 +492,7 @@  discard block
 block discarded – undo
485 492
      * @param int $frequency
486 493
      * @param mixed $settlement
487 494
      * @param mixed $maturity
488
-     * @param mixed $basis
495
+     * @param integer $basis
489 496
      *
490 497
      * @return float
491 498
      */
@@ -562,8 +569,8 @@  discard block
 block discarded – undo
562 569
      *                                        4                European 30/360
563 570
      * @param mixed $settlement
564 571
      * @param mixed $maturity
565
-     * @param mixed $frequency
566
-     * @param mixed $basis
572
+     * @param integer $frequency
573
+     * @param integer $basis
567 574
      *
568 575
      * @return float
569 576
      */
@@ -626,7 +633,7 @@  discard block
 block discarded – undo
626 633
      * @param mixed $settlement
627 634
      * @param mixed $maturity
628 635
      * @param mixed $frequency
629
-     * @param mixed $basis
636
+     * @param integer $basis
630 637
      *
631 638
      * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
632 639
      *                        depending on the value of the ReturnDateType flag
@@ -687,8 +694,8 @@  discard block
 block discarded – undo
687 694
      *                                        4                European 30/360
688 695
      * @param mixed $settlement
689 696
      * @param mixed $maturity
690
-     * @param mixed $frequency
691
-     * @param mixed $basis
697
+     * @param integer $frequency
698
+     * @param integer $basis
692 699
      *
693 700
      * @return int
694 701
      */
@@ -764,7 +771,7 @@  discard block
 block discarded – undo
764 771
      * @param mixed $settlement
765 772
      * @param mixed $maturity
766 773
      * @param mixed $frequency
767
-     * @param mixed $basis
774
+     * @param integer $basis
768 775
      *
769 776
      * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,
770 777
      *                        depending on the value of the ReturnDateType flag
@@ -916,7 +923,7 @@  discard block
 block discarded – undo
916 923
      * @param mixed $salvage
917 924
      * @param mixed $life
918 925
      * @param mixed $period
919
-     * @param mixed $month
926
+     * @param integer $month
920 927
      *
921 928
      * @return float
922 929
      */
@@ -991,7 +998,7 @@  discard block
 block discarded – undo
991 998
      * @param mixed $salvage
992 999
      * @param mixed $life
993 1000
      * @param mixed $period
994
-     * @param mixed $factor
1001
+     * @param double $factor
995 1002
      *
996 1003
      * @return float
997 1004
      */
@@ -1060,7 +1067,7 @@  discard block
 block discarded – undo
1060 1067
      * @param mixed $maturity
1061 1068
      * @param mixed $price
1062 1069
      * @param mixed $redemption
1063
-     * @param mixed $basis
1070
+     * @param integer $basis
1064 1071
      *
1065 1072
      * @return float
1066 1073
      */
@@ -1179,7 +1186,7 @@  discard block
 block discarded – undo
1179 1186
      *
1180 1187
      * @category Financial Functions
1181 1188
      *
1182
-     * @param float $nominal_rate Nominal interest rate
1189
+     * @param integer $nominal_rate Nominal interest rate
1183 1190
      * @param int $npery Number of compounding payments per year
1184 1191
      *
1185 1192
      * @return float
@@ -1207,12 +1214,12 @@  discard block
 block discarded – undo
1207 1214
      *
1208 1215
      * @category Financial Functions
1209 1216
      *
1210
-     * @param float $rate The interest rate per period
1217
+     * @param integer $rate The interest rate per period
1211 1218
      * @param int $nper Total number of payment periods in an annuity
1212
-     * @param float $pmt The payment made each period: it cannot change over the
1219
+     * @param integer $pmt The payment made each period: it cannot change over the
1213 1220
      *                            life of the annuity. Typically, pmt contains principal
1214 1221
      *                            and interest but no other fees or taxes.
1215
-     * @param float $pv present Value, or the lump-sum amount that a series of
1222
+     * @param integer $pv present Value, or the lump-sum amount that a series of
1216 1223
      *                            future payments is worth right now
1217 1224
      * @param int $type A number 0 or 1 and indicates when payments are due:
1218 1225
      *                                0 or omitted    At the end of the period.
@@ -1330,7 +1337,7 @@  discard block
 block discarded – undo
1330 1337
      * @param int $per Period for which we want to find the interest
1331 1338
      * @param int $nper Number of periods
1332 1339
      * @param float $pv Present Value
1333
-     * @param float $fv Future Value
1340
+     * @param integer $fv Future Value
1334 1341
      * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1335 1342
      *
1336 1343
      * @return float
@@ -1525,7 +1532,7 @@  discard block
 block discarded – undo
1525 1532
      *
1526 1533
      * Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
1527 1534
      *
1528
-     * @param float $effect_rate Effective interest rate
1535
+     * @param integer $effect_rate Effective interest rate
1529 1536
      * @param int $npery Number of compounding payments per year
1530 1537
      *
1531 1538
      * @return float
@@ -1549,10 +1556,10 @@  discard block
 block discarded – undo
1549 1556
      *
1550 1557
      * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate.
1551 1558
      *
1552
-     * @param float $rate Interest rate per period
1559
+     * @param integer $rate Interest rate per period
1553 1560
      * @param int $pmt Periodic payment (annuity)
1554
-     * @param float $pv Present Value
1555
-     * @param float $fv Future Value
1561
+     * @param integer $pv Present Value
1562
+     * @param integer $fv Future Value
1556 1563
      * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1557 1564
      *
1558 1565
      * @return float
@@ -1618,10 +1625,10 @@  discard block
 block discarded – undo
1618 1625
      *
1619 1626
      * Returns the constant payment (annuity) for a cash flow with a constant interest rate.
1620 1627
      *
1621
-     * @param float $rate Interest rate per period
1628
+     * @param integer $rate Interest rate per period
1622 1629
      * @param int $nper Number of periods
1623
-     * @param float $pv Present Value
1624
-     * @param float $fv Future Value
1630
+     * @param integer $pv Present Value
1631
+     * @param integer $fv Future Value
1625 1632
      * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1626 1633
      *
1627 1634
      * @return float
@@ -1656,7 +1663,7 @@  discard block
 block discarded – undo
1656 1663
      * @param int $per Period for which we want to find the interest
1657 1664
      * @param int $nper Number of periods
1658 1665
      * @param float $pv Present Value
1659
-     * @param float $fv Future 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
@@ -1746,7 +1753,7 @@  discard block
 block discarded – undo
1746 1753
      * @param mixed $maturity
1747 1754
      * @param mixed $discount
1748 1755
      * @param mixed $redemption
1749
-     * @param mixed $basis
1756
+     * @param integer $basis
1750 1757
      *
1751 1758
      * @return float
1752 1759
      */
@@ -1798,7 +1805,7 @@  discard block
 block discarded – undo
1798 1805
      * @param mixed $issue
1799 1806
      * @param mixed $rate
1800 1807
      * @param mixed $yield
1801
-     * @param mixed $basis
1808
+     * @param integer $basis
1802 1809
      *
1803 1810
      * @return float
1804 1811
      */
@@ -1852,10 +1859,10 @@  discard block
 block discarded – undo
1852 1859
      *
1853 1860
      * Returns the Present Value of a cash flow with constant payments and interest rate (annuities).
1854 1861
      *
1855
-     * @param float $rate Interest rate per period
1862
+     * @param integer $rate Interest rate per period
1856 1863
      * @param int $nper Number of periods
1857
-     * @param float $pmt Periodic payment (annuity)
1858
-     * @param float $fv Future Value
1864
+     * @param integer $pmt Periodic payment (annuity)
1865
+     * @param integer $fv Future Value
1859 1866
      * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1860 1867
      *
1861 1868
      * @return float
@@ -1912,9 +1919,9 @@  discard block
 block discarded – undo
1912 1919
      * @param mixed $nper
1913 1920
      * @param mixed $pmt
1914 1921
      * @param mixed $pv
1915
-     * @param mixed $fv
1916
-     * @param mixed $type
1917
-     * @param mixed $guess
1922
+     * @param double $fv
1923
+     * @param integer $type
1924
+     * @param double $guess
1918 1925
      *
1919 1926
      * @return float
1920 1927
      **/
@@ -1983,7 +1990,7 @@  discard block
 block discarded – undo
1983 1990
      * @param mixed $maturity
1984 1991
      * @param mixed $investment
1985 1992
      * @param mixed $discount
1986
-     * @param mixed $basis
1993
+     * @param integer $basis
1987 1994
      *
1988 1995
      * @return float
1989 1996
      */
@@ -2353,7 +2360,7 @@  discard block
 block discarded – undo
2353 2360
      * @param mixed $maturity
2354 2361
      * @param mixed $price
2355 2362
      * @param mixed $redemption
2356
-     * @param mixed $basis
2363
+     * @param integer $basis
2357 2364
      *
2358 2365
      * @return float
2359 2366
      */
@@ -2410,7 +2417,7 @@  discard block
 block discarded – undo
2410 2417
      * @param mixed $issue
2411 2418
      * @param mixed $rate
2412 2419
      * @param mixed $price
2413
-     * @param mixed $basis
2420
+     * @param integer $basis
2414 2421
      *
2415 2422
      * @return float
2416 2423
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical.php 1 patch
Doc Comments   +8 added lines, -13 removed lines patch added patch discarded remove patch
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
      * @author Jaco van Kooten
115 115
      *
116 116
      * @param mixed $x
117
-     * @param mixed $p
118
-     * @param mixed $q
117
+     * @param double $p
118
+     * @param double $q
119 119
      */
120 120
     private static function betaFraction($x, $p, $q)
121 121
     {
@@ -717,8 +717,8 @@  discard block
 block discarded – undo
717 717
      * @param float $value Value at which you want to evaluate the distribution
718 718
      * @param float $alpha Parameter to the distribution
719 719
      * @param float $beta Parameter to the distribution
720
-     * @param mixed $rMin
721
-     * @param mixed $rMax
720
+     * @param integer $rMin
721
+     * @param integer $rMax
722 722
      *
723 723
      * @return float
724 724
      */
@@ -756,8 +756,8 @@  discard block
 block discarded – undo
756 756
      * @param float $probability Probability at which you want to evaluate the distribution
757 757
      * @param float $alpha Parameter to the distribution
758 758
      * @param float $beta Parameter to the distribution
759
-     * @param float $rMin Minimum value
760
-     * @param float $rMax Maximum value
759
+     * @param integer $rMin Minimum value
760
+     * @param integer $rMax Maximum value
761 761
      *
762 762
      * @return float
763 763
      */
@@ -1823,7 +1823,6 @@  discard block
 block discarded – undo
1823 1823
      * @category Statistical Functions
1824 1824
      *
1825 1825
      * @param mixed $args Data values
1826
-     * @param int $entry Position (ordered from the largest) in the array or range of data to return
1827 1826
      *
1828 1827
      * @return float
1829 1828
      */
@@ -2554,7 +2553,6 @@  discard block
 block discarded – undo
2554 2553
      * @category Statistical Functions
2555 2554
      *
2556 2555
      * @param mixed $args Data values
2557
-     * @param float $entry Percentile value in the range 0..1, inclusive.
2558 2556
      *
2559 2557
      * @return float
2560 2558
      */
@@ -2605,7 +2603,7 @@  discard block
 block discarded – undo
2605 2603
      * @param number the number of significant digits for the returned percentage value
2606 2604
      * @param mixed $valueSet
2607 2605
      * @param mixed $value
2608
-     * @param mixed $significance
2606
+     * @param integer $significance
2609 2607
      *
2610 2608
      * @return float
2611 2609
      */
@@ -2726,7 +2724,6 @@  discard block
 block discarded – undo
2726 2724
      * @category Statistical Functions
2727 2725
      *
2728 2726
      * @param mixed $args Data values
2729
-     * @param int $entry Quartile value in the range 1..3, inclusive.
2730 2727
      *
2731 2728
      * @return float
2732 2729
      */
@@ -2759,7 +2756,7 @@  discard block
 block discarded – undo
2759 2756
      * @param mixed Order to sort the values in the value set
2760 2757
      * @param mixed $value
2761 2758
      * @param mixed $valueSet
2762
-     * @param mixed $order
2759
+     * @param integer $order
2763 2760
      *
2764 2761
      * @return float
2765 2762
      */
@@ -2901,7 +2898,6 @@  discard block
 block discarded – undo
2901 2898
      * @category Statistical Functions
2902 2899
      *
2903 2900
      * @param mixed $args Data values
2904
-     * @param int $entry Position (ordered from the smallest) in the array or range of data to return
2905 2901
      *
2906 2902
      * @return float
2907 2903
      */
@@ -3365,7 +3361,6 @@  discard block
 block discarded – undo
3365 3361
      * @category Statistical Functions
3366 3362
      *
3367 3363
      * @param mixed $args Data values
3368
-     * @param float $discard Percentage to discard
3369 3364
      *
3370 3365
      * @return float
3371 3366
      */
Please login to merge, or discard this patch.