Completed
Pull Request — develop (#80)
by
unknown
31:59 queued 24:13
created
src/PhpSpreadsheet/Worksheet.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
      *
591 591
      * @throws Exception
592 592
      *
593
-     * @return false|Chart
593
+     * @return null|Chart
594 594
      */
595 595
     public function getChartByIndex($index = null)
596 596
     {
@@ -1120,7 +1120,7 @@  discard block
 block discarded – undo
1120 1120
      * Set a cell value.
1121 1121
      *
1122 1122
      * @param string $pCoordinate Coordinate of the cell
1123
-     * @param mixed $pValue Value of the cell
1123
+     * @param integer $pValue Value of the cell
1124 1124
      * @param bool $returnCell Return the worksheet (false, default) or the cell (true)
1125 1125
      *
1126 1126
      * @return Worksheet|Cell Depending on the last parameter being specified
@@ -1237,8 +1237,8 @@  discard block
 block discarded – undo
1237 1237
     /**
1238 1238
      * Get cell at a specific coordinate by using numeric cell coordinates.
1239 1239
      *
1240
-     * @param string $pColumn Numeric column coordinate of the cell
1241
-     * @param string $pRow Numeric row coordinate of the cell
1240
+     * @param integer $pColumn Numeric column coordinate of the cell
1241
+     * @param integer $pRow Numeric row coordinate of the cell
1242 1242
      * @param bool $createIfNotExists Flag indicating whether a new cell should be created if it doesn't
1243 1243
      *                                       already exist, or a null should be returned instead
1244 1244
      *
@@ -1348,8 +1348,8 @@  discard block
 block discarded – undo
1348 1348
     /**
1349 1349
      * Cell at a specific coordinate by using numeric cell coordinates exists?
1350 1350
      *
1351
-     * @param string $pColumn Numeric column coordinate of the cell
1352
-     * @param string $pRow Numeric row coordinate of the cell
1351
+     * @param integer $pColumn Numeric column coordinate of the cell
1352
+     * @param integer $pRow Numeric row coordinate of the cell
1353 1353
      *
1354 1354
      * @return bool
1355 1355
      */
@@ -1362,7 +1362,7 @@  discard block
 block discarded – undo
1362 1362
      * Get row dimension at a specific row.
1363 1363
      *
1364 1364
      * @param int $pRow Numeric index of the row
1365
-     * @param mixed $create
1365
+     * @param boolean $create
1366 1366
      *
1367 1367
      * @return Worksheet\RowDimension
1368 1368
      */
@@ -1388,7 +1388,7 @@  discard block
 block discarded – undo
1388 1388
      * Get column dimension at a specific column.
1389 1389
      *
1390 1390
      * @param string $pColumn String index of the column
1391
-     * @param mixed $create
1391
+     * @param boolean $create
1392 1392
      *
1393 1393
      * @return Worksheet\ColumnDimension
1394 1394
      */
@@ -1934,7 +1934,7 @@  discard block
 block discarded – undo
1934 1934
     /**
1935 1935
      * Set AutoFilter.
1936 1936
      *
1937
-     * @param Worksheet\AutoFilter|string $pValue
1937
+     * @param string $pValue
1938 1938
      *            A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility
1939 1939
      *
1940 1940
      * @throws Exception
@@ -2996,7 +2996,7 @@  discard block
 block discarded – undo
2996 2996
      *
2997 2997
      * @throws Exception
2998 2998
      *
2999
-     * @return objWorksheet
2999
+     * @return Worksheet
3000 3000
      */
3001 3001
     public function setCodeName($pValue = null)
3002 3002
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Worksheet/Row.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,6 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Create a new row.
45 45
      *
46
-     * @param \PhpOffice\PhpSpreadsheet\Worksheet $parent
47 46
      * @param int $rowIndex
48 47
      */
49 48
     public function __construct(\PhpOffice\PhpSpreadsheet\Worksheet $worksheet = null, $rowIndex = 1)
@@ -87,7 +86,7 @@  discard block
 block discarded – undo
87 86
     /**
88 87
      * Returns bound worksheet.
89 88
      *
90
-     * @return Worksheet
89
+     * @return 
91 90
      */
92 91
     public function getWorksheet()
93 92
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Workbook.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -240,8 +240,8 @@  discard block
 block discarded – undo
240 240
      *
241 241
      * @param \PhpOffice\PhpSpreadsheet\Style
242 242
      * @param bool Is it a style XF?
243
-     * @param mixed $style
244
-     * @param mixed $isStyleXf
243
+     * @param \PhpOffice\PhpSpreadsheet\Style $style
244
+     * @param boolean $isStyleXf
245 245
      *
246 246
      * @return int Index to XF record
247 247
      */
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
      *
797 797
      * @param string $name The name in UTF-8
798 798
      * @param string $formulaData The binary formula data
799
-     * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global
799
+     * @param integer $sheetIndex 1-based sheet index the defined name applies to. 0 = global
800 800
      * @param bool $isBuiltIn Built-in name?
801 801
      *
802 802
      * @return string Complete binary record data
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Writer/Xls/Worksheet.php 1 patch
Doc Comments   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -223,10 +223,12 @@  discard block
 block discarded – undo
223 223
      * @param int &$str_unique Total number of unique strings
224 224
      * @param array &$str_table String Table
225 225
      * @param array &$colors Colour Table
226
-     * @param mixed $parser The formula parser created for the Workbook
226
+     * @param Parser $parser The formula parser created for the Workbook
227 227
      * @param bool $preCalculateFormulas Flag indicating whether formulas should be calculated or just written
228 228
      * @param string $phpSheet The worksheet to write
229 229
      * @param \PhpOffice\PhpSpreadsheet\Worksheet $phpSheet
230
+     * @param integer $str_total
231
+     * @param integer $str_unique
230 232
      */
231 233
     public function __construct(&$str_total, &$str_unique, &$str_table, &$colors, $parser, $preCalculateFormulas, $phpSheet)
232 234
     {
@@ -624,7 +626,7 @@  discard block
 block discarded – undo
624 626
      * @param int $row Zero indexed row
625 627
      * @param int $col Zero indexed column
626 628
      * @param float $num The number to write
627
-     * @param mixed $xfIndex The optional XF format
629
+     * @param integer $xfIndex The optional XF format
628 630
      *
629 631
      * @return int
630 632
      */
@@ -733,7 +735,7 @@  discard block
 block discarded – undo
733 735
      * @param int $row Zero indexed row
734 736
      * @param int $col Zero indexed column
735 737
      * @param string $str The string to write
736
-     * @param mixed $xfIndex The XF format index for the cell
738
+     * @param integer $xfIndex The XF format index for the cell
737 739
      *
738 740
      * @return int
739 741
      */
@@ -800,7 +802,7 @@  discard block
 block discarded – undo
800 802
      *
801 803
      * @param int $row Zero indexed row
802 804
      * @param int $col Zero indexed column
803
-     * @param mixed $xfIndex The XF format index
805
+     * @param integer $xfIndex The XF format index
804 806
      */
805 807
     public function writeBlank($row, $col, $xfIndex)
806 808
     {
@@ -847,7 +849,7 @@  discard block
 block discarded – undo
847 849
      * @param int $row Zero indexed row
848 850
      * @param int $col Zero indexed column
849 851
      * @param string $formula The formula text string
850
-     * @param mixed $xfIndex The XF format index
852
+     * @param integer $xfIndex The XF format index
851 853
      * @param mixed $calculatedValue Calculated value
852 854
      *
853 855
      * @return int
@@ -2327,8 +2329,8 @@  discard block
 block discarded – undo
2327 2329
      * @param mixed $bitmap The bitmap filename or GD-image resource
2328 2330
      * @param int $x the horizontal position (offset) of the image inside the cell
2329 2331
      * @param int $y the vertical position (offset) of the image inside the cell
2330
-     * @param float $scale_x The horizontal scale
2331
-     * @param float $scale_y The vertical scale
2332
+     * @param integer $scale_x The horizontal scale
2333
+     * @param integer $scale_y The vertical scale
2332 2334
      */
2333 2335
     public function insertBitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1)
2334 2336
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1853,7 +1853,7 @@  discard block
 block discarded – undo
1853 1853
      *
1854 1854
      * @param string $complexNumber the complex number for which you want the real coefficient
1855 1855
      *
1856
-     * @return float
1856
+     * @return string
1857 1857
      */
1858 1858
     public static function IMREAL($complexNumber)
1859 1859
     {
@@ -2291,7 +2291,7 @@  discard block
 block discarded – undo
2291 2291
      * Excel Function:
2292 2292
      *        IMSUM(complexNumber[,complexNumber[,...]])
2293 2293
      *
2294
-     * @param string $complexNumbers Series of complex numbers to add
2294
+     * @param string[] $complexNumbers Series of complex numbers to add
2295 2295
      *
2296 2296
      * @return string
2297 2297
      */
@@ -2331,7 +2331,7 @@  discard block
 block discarded – undo
2331 2331
      * Excel Function:
2332 2332
      *        IMPRODUCT(complexNumber[,complexNumber[,...]])
2333 2333
      *
2334
-     * @param string $complexNumbers Series of complex numbers to multiply
2334
+     * @param string[] $complexNumbers Series of complex numbers to multiply
2335 2335
      *
2336 2336
      * @return string
2337 2337
      */
@@ -2375,7 +2375,7 @@  discard block
 block discarded – undo
2375 2375
      *        DELTA(a[,b])
2376 2376
      *
2377 2377
      * @param float $a the first number
2378
-     * @param float $b The second number. If omitted, b is assumed to be zero.
2378
+     * @param integer $b The second number. If omitted, b is assumed to be zero.
2379 2379
      *
2380 2380
      * @return int
2381 2381
      */
@@ -2398,7 +2398,7 @@  discard block
 block discarded – undo
2398 2398
      * functions you calculate the count of values that exceed a threshold.
2399 2399
      *
2400 2400
      * @param float $number the value to test against step
2401
-     * @param float $step The threshold value.
2401
+     * @param integer $step The threshold value.
2402 2402
      *                                    If you omit a value for step, GESTEP uses zero.
2403 2403
      *
2404 2404
      * @return int
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig.php 1 patch
Doc Comments   +11 added lines, -11 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;
@@ -504,7 +508,7 @@  discard block
 block discarded – undo
504 508
      * @category Mathematical and Trigonometric Functions
505 509
      *
506 510
      * @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.
511
+     * @param integer $base The base of the logarithm. If base is omitted, it is assumed to be 10.
508 512
      *
509 513
      * @return float
510 514
      */
@@ -822,8 +826,8 @@  discard block
 block discarded – undo
822 826
      *
823 827
      * Computes x raised to the power y.
824 828
      *
825
-     * @param float $x
826
-     * @param float $y
829
+     * @param integer $x
830
+     * @param integer $y
827 831
      *
828 832
      * @return float
829 833
      */
@@ -897,7 +901,7 @@  discard block
 block discarded – undo
897 901
      *
898 902
      * @param mixed $args Data values
899 903
      *
900
-     * @return float
904
+     * @return integer
901 905
      */
902 906
     public static function QUOTIENT(...$args)
903 907
     {
@@ -1035,9 +1039,6 @@  discard block
 block discarded – undo
1035 1039
      *
1036 1040
      * Returns the sum of a power series
1037 1041
      *
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 1042
      * @param array of mixed Data Series
1042 1043
      *
1043 1044
      * @return float
@@ -1215,7 +1216,7 @@  discard block
 block discarded – undo
1215 1216
      * @param mixed $aArgs
1216 1217
      * @param mixed $sumArgs
1217 1218
      *
1218
-     * @return float
1219
+     * @return integer
1219 1220
      */
1220 1221
     public static function SUMIF($aArgs, $condition, $sumArgs = [])
1221 1222
     {
@@ -1255,9 +1256,8 @@  discard block
 block discarded – undo
1255 1256
      *    @category Mathematical and Trigonometric Functions
1256 1257
      *
1257 1258
      * @param mixed $args Data values
1258
-     * @param string $condition the criteria that defines which cells will be summed
1259 1259
      *
1260
-     * @return float
1260
+     * @return integer
1261 1261
      */
1262 1262
     public static function SUMIFS(...$args)
1263 1263
     {
@@ -1446,7 +1446,7 @@  discard block
 block discarded – undo
1446 1446
      *
1447 1447
      * Truncates value to the number of fractional digits by number_digits.
1448 1448
      *
1449
-     * @param float $value
1449
+     * @param integer $value
1450 1450
      * @param int $digits
1451 1451
      *
1452 1452
      * @return float Truncated value
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical.php 1 patch
Doc Comments   +9 added lines, -14 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
     {
@@ -909,8 +909,8 @@  discard block
 block discarded – undo
909 909
      * @param float $value Value at which you want to evaluate the distribution
910 910
      * @param float $alpha Parameter to the distribution
911 911
      * @param float $beta Parameter to the distribution
912
-     * @param mixed $rMin
913
-     * @param mixed $rMax
912
+     * @param integer $rMin
913
+     * @param integer $rMax
914 914
      *
915 915
      * @return float
916 916
      */
@@ -948,8 +948,8 @@  discard block
 block discarded – undo
948 948
      * @param float $probability Probability at which you want to evaluate the distribution
949 949
      * @param float $alpha Parameter to the distribution
950 950
      * @param float $beta Parameter to the distribution
951
-     * @param float $rMin Minimum value
952
-     * @param float $rMax Maximum value
951
+     * @param integer $rMin Minimum value
952
+     * @param integer $rMax Maximum value
953 953
      *
954 954
      * @return float
955 955
      */
@@ -2015,7 +2015,6 @@  discard block
 block discarded – undo
2015 2015
      * @category Statistical Functions
2016 2016
      *
2017 2017
      * @param mixed $args Data values
2018
-     * @param int $entry Position (ordered from the largest) in the array or range of data to return
2019 2018
      *
2020 2019
      * @return float
2021 2020
      */
@@ -2745,7 +2744,6 @@  discard block
 block discarded – undo
2745 2744
      * @category Statistical Functions
2746 2745
      *
2747 2746
      * @param mixed $args Data values
2748
-     * @param float $entry Percentile value in the range 0..1, inclusive.
2749 2747
      *
2750 2748
      * @return float
2751 2749
      */
@@ -2796,7 +2794,7 @@  discard block
 block discarded – undo
2796 2794
      * @param number the number of significant digits for the returned percentage value
2797 2795
      * @param mixed $valueSet
2798 2796
      * @param mixed $value
2799
-     * @param mixed $significance
2797
+     * @param integer $significance
2800 2798
      *
2801 2799
      * @return float
2802 2800
      */
@@ -2917,7 +2915,6 @@  discard block
 block discarded – undo
2917 2915
      * @category Statistical Functions
2918 2916
      *
2919 2917
      * @param mixed $args Data values
2920
-     * @param int $entry Quartile value in the range 1..3, inclusive.
2921 2918
      *
2922 2919
      * @return float
2923 2920
      */
@@ -2950,7 +2947,7 @@  discard block
 block discarded – undo
2950 2947
      * @param mixed Order to sort the values in the value set
2951 2948
      * @param mixed $value
2952 2949
      * @param mixed $valueSet
2953
-     * @param mixed $order
2950
+     * @param integer $order
2954 2951
      *
2955 2952
      * @return float
2956 2953
      */
@@ -3092,7 +3089,6 @@  discard block
 block discarded – undo
3092 3089
      * @category Statistical Functions
3093 3090
      *
3094 3091
      * @param mixed $args Data values
3095
-     * @param int $entry Position (ordered from the smallest) in the array or range of data to return
3096 3092
      *
3097 3093
      * @return float
3098 3094
      */
@@ -3556,7 +3552,6 @@  discard block
 block discarded – undo
3556 3552
      * @category Statistical Functions
3557 3553
      *
3558 3554
      * @param mixed $args Data values
3559
-     * @param float $discard Percentage to discard
3560 3555
      *
3561 3556
      * @return float
3562 3557
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Csv.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -446,7 +446,7 @@
 block discarded – undo
446 446
      * Set col data Type
447 447
      *
448 448
      * @param string, PHPExcel_Cell_DataType
449
-     * @return PHPExcel_Reader_CSV
449
+     * @return Csv
450 450
      */
451 451
     public function setColDataType($colLetter = 'A', $dateType = PHPExcel_Cell_DataType::TYPE_STRING)
452 452
     {
Please login to merge, or discard this patch.