Completed
Push — develop ( e0a9f9...ba7054 )
by Adrien
19:36
created
src/PhpSpreadsheet/Calculation/Logical.php 2 patches
Doc Comments   +5 added lines, -7 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@  discard block
 block discarded – undo
75 75
      *            the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value
76 76
      *
77 77
      * @category Logical Functions
78
-     * @param    mixed        $arg,...        Data values
79
-     * @return    bool        The logical AND of the arguments.
78
+     * @return    string|boolean        The logical AND of the arguments.
80 79
      */
81 80
     public static function logicalAnd()
82 81
     {
@@ -130,8 +129,7 @@  discard block
 block discarded – undo
130 129
      *            the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value
131 130
      *
132 131
      * @category Logical Functions
133
-     * @param    mixed        $arg,...        Data values
134
-     * @return    bool        The logical OR of the arguments.
132
+     * @return    string|boolean        The logical OR of the arguments.
135 133
      */
136 134
     public static function logicalOr()
137 135
     {
@@ -185,7 +183,7 @@  discard block
 block discarded – undo
185 183
      *
186 184
      * @category Logical Functions
187 185
      * @param    mixed        $logical    A value or expression that can be evaluated to TRUE or FALSE
188
-     * @return    bool        The boolean inverse of the argument.
186
+     * @return    boolean|string        The boolean inverse of the argument.
189 187
      */
190 188
     public static function NOT($logical = false)
191 189
     {
@@ -230,8 +228,8 @@  discard block
 block discarded – undo
230 228
      *            ReturnIfFalse can be another formula.
231 229
      *
232 230
      * @category Logical Functions
233
-     * @param    mixed    $condition        Condition to evaluate
234
-     * @param    mixed    $returnIfTrue    Value to return when condition is true
231
+     * @param    boolean    $condition        Condition to evaluate
232
+     * @param    integer    $returnIfTrue    Value to return when condition is true
235 233
      * @param    mixed    $returnIfFalse    Optional value to return when condition is false
236 234
      * @return    mixed    The value of returnIfTrue or returnIfFalse determined by condition
237 235
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -237,8 +237,8 @@
 block discarded – undo
237 237
      */
238 238
     public static function statementIf($condition = true, $returnIfTrue = 0, $returnIfFalse = false)
239 239
     {
240
-        $condition = (is_null($condition))     ? true :  (boolean) Functions::flattenSingleValue($condition);
241
-        $returnIfTrue = (is_null($returnIfTrue))  ? 0 :     Functions::flattenSingleValue($returnIfTrue);
240
+        $condition = (is_null($condition)) ? true : (boolean) Functions::flattenSingleValue($condition);
241
+        $returnIfTrue = (is_null($returnIfTrue)) ? 0 : Functions::flattenSingleValue($returnIfTrue);
242 242
         $returnIfFalse = (is_null($returnIfFalse)) ? false : Functions::flattenSingleValue($returnIfFalse);
243 243
 
244 244
         return ($condition) ? $returnIfTrue : $returnIfFalse;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Statistical.php 2 patches
Doc Comments   +6 added lines, -44 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      *
125 125
      * @param p require p>0
126 126
      * @param q require q>0
127
-     * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
127
+     * @return double if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow
128 128
      * @author Jaco van Kooten
129 129
      */
130 130
     private static function logBeta($p, $q)
@@ -146,6 +146,8 @@  discard block
 block discarded – undo
146 146
      * Evaluates of continued fraction part of incomplete beta function.
147 147
      * Based on an idea from Numerical Recipes (W.H. Press et al, 1992).
148 148
      * @author Jaco van Kooten
149
+     * @param double $p
150
+     * @param double $q
149 151
      */
150 152
     private static function betaFraction($x, $p, $q)
151 153
     {
@@ -702,7 +704,6 @@  discard block
 block discarded – undo
702 704
      *        AVEDEV(value1[,value2[, ...]])
703 705
      *
704 706
      * @category Statistical Functions
705
-     * @param    mixed        $arg,...        Data values
706 707
      * @return    float
707 708
      */
708 709
     public static function AVEDEV()
@@ -751,7 +752,6 @@  discard block
 block discarded – undo
751 752
      *        AVERAGE(value1[,value2[, ...]])
752 753
      *
753 754
      * @category Statistical Functions
754
-     * @param    mixed        $arg,...        Data values
755 755
      * @return    float
756 756
      */
757 757
     public static function AVERAGE()
@@ -792,7 +792,6 @@  discard block
 block discarded – undo
792 792
      *        AVERAGEA(value1[,value2[, ...]])
793 793
      *
794 794
      * @category Statistical Functions
795
-     * @param    mixed        $arg,...        Data values
796 795
      * @return    float
797 796
      */
798 797
     public static function AVERAGEA()
@@ -837,7 +836,6 @@  discard block
 block discarded – undo
837 836
      *        AVERAGEIF(value1[,value2[, ...]],condition)
838 837
      *
839 838
      * @category Mathematical and Trigonometric Functions
840
-     * @param    mixed        $arg,...        Data values
841 839
      * @param    string        $condition        The criteria that defines which cells will be checked.
842 840
      * @param    mixed[]        $averageArgs    Data values
843 841
      * @return    float
@@ -882,7 +880,6 @@  discard block
 block discarded – undo
882 880
      * @param    float        $value            Value at which you want to evaluate the distribution
883 881
      * @param    float        $alpha            Parameter to the distribution
884 882
      * @param    float        $beta            Parameter to the distribution
885
-     * @param    bool        $cumulative
886 883
      * @return    float
887 884
      */
888 885
     public static function BETADIST($value, $alpha, $beta, $rMin = 0, $rMax = 1)
@@ -919,9 +916,8 @@  discard block
 block discarded – undo
919 916
      * @param    float        $probability    Probability at which you want to evaluate the distribution
920 917
      * @param    float        $alpha            Parameter to the distribution
921 918
      * @param    float        $beta            Parameter to the distribution
922
-     * @param    float        $rMin            Minimum value
923
-     * @param    float        $rMax            Maximum value
924
-     * @param    bool        $cumulative
919
+     * @param    integer        $rMin            Minimum value
920
+     * @param    integer        $rMax            Maximum value
925 921
      * @return    float
926 922
      */
927 923
     public static function BETAINV($probability, $alpha, $beta, $rMin = 0, $rMax = 1)
@@ -1172,7 +1168,6 @@  discard block
 block discarded – undo
1172 1168
      *        COUNT(value1[,value2[, ...]])
1173 1169
      *
1174 1170
      * @category Statistical Functions
1175
-     * @param    mixed        $arg,...        Data values
1176 1171
      * @return    int
1177 1172
      */
1178 1173
     public static function COUNT()
@@ -1204,7 +1199,6 @@  discard block
 block discarded – undo
1204 1199
      *        COUNTA(value1[,value2[, ...]])
1205 1200
      *
1206 1201
      * @category Statistical Functions
1207
-     * @param    mixed        $arg,...        Data values
1208 1202
      * @return    int
1209 1203
      */
1210 1204
     public static function COUNTA()
@@ -1232,7 +1226,6 @@  discard block
 block discarded – undo
1232 1226
      *        COUNTBLANK(value1[,value2[, ...]])
1233 1227
      *
1234 1228
      * @category Statistical Functions
1235
-     * @param    mixed        $arg,...        Data values
1236 1229
      * @return    int
1237 1230
      */
1238 1231
     public static function COUNTBLANK()
@@ -1260,7 +1253,6 @@  discard block
 block discarded – undo
1260 1253
      *        COUNTIF(value1[,value2[, ...]],condition)
1261 1254
      *
1262 1255
      * @category Statistical Functions
1263
-     * @param    mixed        $arg,...        Data values
1264 1256
      * @param    string        $condition        The criteria that defines which cells will be counted.
1265 1257
      * @return    int
1266 1258
      */
@@ -1445,7 +1437,6 @@  discard block
 block discarded – undo
1445 1437
      *        DEVSQ(value1[,value2[, ...]])
1446 1438
      *
1447 1439
      * @category Statistical Functions
1448
-     * @param    mixed        $arg,...        Data values
1449 1440
      * @return    float
1450 1441
      */
1451 1442
     public static function DEVSQ()
@@ -1727,7 +1718,6 @@  discard block
 block discarded – undo
1727 1718
      *        GEOMEAN(value1[,value2[, ...]])
1728 1719
      *
1729 1720
      * @category Statistical Functions
1730
-     * @param    mixed        $arg,...        Data values
1731 1721
      * @return    float
1732 1722
      */
1733 1723
     public static function GEOMEAN()
@@ -1786,7 +1776,6 @@  discard block
 block discarded – undo
1786 1776
      *        HARMEAN(value1[,value2[, ...]])
1787 1777
      *
1788 1778
      * @category Statistical Functions
1789
-     * @param    mixed        $arg,...        Data values
1790 1779
      * @return    float
1791 1780
      */
1792 1781
     public static function HARMEAN()
@@ -1940,8 +1929,6 @@  discard block
 block discarded – undo
1940 1929
      *        LARGE(value1[,value2[, ...]],entry)
1941 1930
      *
1942 1931
      * @category Statistical Functions
1943
-     * @param    mixed        $arg,...        Data values
1944
-     * @param    int            $entry            Position (ordered from the largest) in the array or range of data to return
1945 1932
      * @return    float
1946 1933
      */
1947 1934
     public static function LARGE()
@@ -2163,7 +2150,6 @@  discard block
 block discarded – undo
2163 2150
      *        MAX(value1[,value2[, ...]])
2164 2151
      *
2165 2152
      * @category Statistical Functions
2166
-     * @param    mixed        $arg,...        Data values
2167 2153
      * @return    float
2168 2154
      */
2169 2155
     public static function MAX()
@@ -2197,7 +2183,6 @@  discard block
 block discarded – undo
2197 2183
      *        MAXA(value1[,value2[, ...]])
2198 2184
      *
2199 2185
      * @category Statistical Functions
2200
-     * @param    mixed        $arg,...        Data values
2201 2186
      * @return    float
2202 2187
      */
2203 2188
     public static function MAXA()
@@ -2236,7 +2221,6 @@  discard block
 block discarded – undo
2236 2221
      *        MAXIF(value1[,value2[, ...]],condition)
2237 2222
      *
2238 2223
      * @category Mathematical and Trigonometric Functions
2239
-     * @param    mixed        $arg,...        Data values
2240 2224
      * @param    string        $condition        The criteria that defines which cells will be checked.
2241 2225
      * @return    float
2242 2226
      */
@@ -2275,7 +2259,6 @@  discard block
 block discarded – undo
2275 2259
      *        MEDIAN(value1[,value2[, ...]])
2276 2260
      *
2277 2261
      * @category Statistical Functions
2278
-     * @param    mixed        $arg,...        Data values
2279 2262
      * @return    float
2280 2263
      */
2281 2264
     public static function MEDIAN()
@@ -2317,7 +2300,6 @@  discard block
 block discarded – undo
2317 2300
      *        MIN(value1[,value2[, ...]])
2318 2301
      *
2319 2302
      * @category Statistical Functions
2320
-     * @param    mixed        $arg,...        Data values
2321 2303
      * @return    float
2322 2304
      */
2323 2305
     public static function MIN()
@@ -2351,7 +2333,6 @@  discard block
 block discarded – undo
2351 2333
      *        MINA(value1[,value2[, ...]])
2352 2334
      *
2353 2335
      * @category Statistical Functions
2354
-     * @param    mixed        $arg,...        Data values
2355 2336
      * @return    float
2356 2337
      */
2357 2338
     public static function MINA()
@@ -2390,7 +2371,6 @@  discard block
 block discarded – undo
2390 2371
      *        MINIF(value1[,value2[, ...]],condition)
2391 2372
      *
2392 2373
      * @category Mathematical and Trigonometric Functions
2393
-     * @param    mixed        $arg,...        Data values
2394 2374
      * @param    string        $condition        The criteria that defines which cells will be checked.
2395 2375
      * @return    float
2396 2376
      */
@@ -2466,7 +2446,6 @@  discard block
 block discarded – undo
2466 2446
      *        MODE(value1[,value2[, ...]])
2467 2447
      *
2468 2448
      * @category Statistical Functions
2469
-     * @param    mixed        $arg,...        Data values
2470 2449
      * @return    float
2471 2450
      */
2472 2451
     public static function MODE()
@@ -2569,9 +2548,9 @@  discard block
 block discarded – undo
2569 2548
      *
2570 2549
      * Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation.
2571 2550
      *
2572
-     * @param    float        $value
2573 2551
      * @param    float        $mean        Mean Value
2574 2552
      * @param    float        $stdDev        Standard Deviation
2553
+     * @param double $probability
2575 2554
      * @return    float
2576 2555
      */
2577 2556
     public static function NORMINV($probability, $mean, $stdDev)
@@ -2633,8 +2612,6 @@  discard block
 block discarded – undo
2633 2612
      *        PERCENTILE(value1[,value2[, ...]],entry)
2634 2613
      *
2635 2614
      * @category Statistical Functions
2636
-     * @param    mixed        $arg,...        Data values
2637
-     * @param    float        $entry            Percentile value in the range 0..1, inclusive.
2638 2615
      * @return    float
2639 2616
      */
2640 2617
     public static function PERCENTILE()
@@ -2798,8 +2775,6 @@  discard block
 block discarded – undo
2798 2775
      *        QUARTILE(value1[,value2[, ...]],entry)
2799 2776
      *
2800 2777
      * @category Statistical Functions
2801
-     * @param    mixed        $arg,...        Data values
2802
-     * @param    int            $entry            Quartile value in the range 1..3, inclusive.
2803 2778
      * @return    float
2804 2779
      */
2805 2780
     public static function QUARTILE()
@@ -2960,8 +2935,6 @@  discard block
 block discarded – undo
2960 2935
      *        SMALL(value1[,value2[, ...]],entry)
2961 2936
      *
2962 2937
      * @category Statistical Functions
2963
-     * @param    mixed        $arg,...        Data values
2964
-     * @param    int            $entry            Position (ordered from the smallest) in the array or range of data to return
2965 2938
      * @return    float
2966 2939
      */
2967 2940
     public static function SMALL()
@@ -3029,7 +3002,6 @@  discard block
 block discarded – undo
3029 3002
      *        STDEV(value1[,value2[, ...]])
3030 3003
      *
3031 3004
      * @category Statistical Functions
3032
-     * @param    mixed        $arg,...        Data values
3033 3005
      * @return    float
3034 3006
      */
3035 3007
     public static function STDEV()
@@ -3076,7 +3048,6 @@  discard block
 block discarded – undo
3076 3048
      *        STDEVA(value1[,value2[, ...]])
3077 3049
      *
3078 3050
      * @category Statistical Functions
3079
-     * @param    mixed        $arg,...        Data values
3080 3051
      * @return    float
3081 3052
      */
3082 3053
     public static function STDEVA()
@@ -3126,7 +3097,6 @@  discard block
 block discarded – undo
3126 3097
      *        STDEVP(value1[,value2[, ...]])
3127 3098
      *
3128 3099
      * @category Statistical Functions
3129
-     * @param    mixed        $arg,...        Data values
3130 3100
      * @return    float
3131 3101
      */
3132 3102
     public static function STDEVP()
@@ -3171,7 +3141,6 @@  discard block
 block discarded – undo
3171 3141
      *        STDEVPA(value1[,value2[, ...]])
3172 3142
      *
3173 3143
      * @category Statistical Functions
3174
-     * @param    mixed        $arg,...        Data values
3175 3144
      * @return    float
3176 3145
      */
3177 3146
     public static function STDEVPA()
@@ -3403,8 +3372,6 @@  discard block
 block discarded – undo
3403 3372
      *        TRIMEAN(value1[,value2[, ...]], $discard)
3404 3373
      *
3405 3374
      * @category Statistical Functions
3406
-     * @param    mixed        $arg,...        Data values
3407
-     * @param    float        $discard        Percentage to discard
3408 3375
      * @return    float
3409 3376
      */
3410 3377
     public static function TRIMMEAN()
@@ -3447,7 +3414,6 @@  discard block
 block discarded – undo
3447 3414
      *        VAR(value1[,value2[, ...]])
3448 3415
      *
3449 3416
      * @category Statistical Functions
3450
-     * @param    mixed        $arg,...        Data values
3451 3417
      * @return    float
3452 3418
      */
3453 3419
     public static function VARFunc()
@@ -3489,7 +3455,6 @@  discard block
 block discarded – undo
3489 3455
      *        VARA(value1[,value2[, ...]])
3490 3456
      *
3491 3457
      * @category Statistical Functions
3492
-     * @param    mixed        $arg,...        Data values
3493 3458
      * @return    float
3494 3459
      */
3495 3460
     public static function VARA()
@@ -3540,7 +3505,6 @@  discard block
 block discarded – undo
3540 3505
      *        VARP(value1[,value2[, ...]])
3541 3506
      *
3542 3507
      * @category Statistical Functions
3543
-     * @param    mixed        $arg,...        Data values
3544 3508
      * @return    float
3545 3509
      */
3546 3510
     public static function VARP()
@@ -3583,7 +3547,6 @@  discard block
 block discarded – undo
3583 3547
      *        VARPA(value1[,value2[, ...]])
3584 3548
      *
3585 3549
      * @category Statistical Functions
3586
-     * @param    mixed        $arg,...        Data values
3587 3550
      * @return    float
3588 3551
      */
3589 3552
     public static function VARPA()
@@ -3668,7 +3631,6 @@  discard block
 block discarded – undo
3668 3631
      * @param    float        $dataSet
3669 3632
      * @param    float        $m0        Alpha Parameter
3670 3633
      * @param    float        $sigma    Beta Parameter
3671
-     * @param    bool        $cumulative
3672 3634
      * @return    float
3673 3635
      */
3674 3636
     public static function ZTEST($dataSet, $m0, $sigma = null)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -520,8 +520,8 @@
 block discarded – undo
520 520
         ];
521 521
 
522 522
         //    Define lower and upper region break-points.
523
-        $p_low = 0.02425;            //Use lower region approx. below this
524
-        $p_high = 1 - $p_low;        //Use upper region approx. above this
523
+        $p_low = 0.02425; //Use lower region approx. below this
524
+        $p_high = 1 - $p_low; //Use upper region approx. above this
525 525
 
526 526
         if (0 < $p && $p < $p_low) {
527 527
             //    Rational approximation for lower region.
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * CHARACTER
55 55
      *
56 56
      * @param    string    $character    Value
57
-     * @return    int
57
+     * @return    string
58 58
      */
59 59
     public static function CHARACTER($character)
60 60
     {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * This function converts a number to text using currency format, with the decimals rounded to the specified place.
184 184
      * The format used is $#,##0.00_);($#,##0.00)..
185 185
      *
186
-     * @param    float    $value            The value to format
186
+     * @param    integer    $value            The value to format
187 187
      * @param    int        $decimals        The number of digits to display to the right of the decimal point.
188 188
      *                                    If decimals is negative, number is rounded to the left of the decimal point.
189 189
      *                                    If you omit decimals, it is assumed to be 2
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      * @param    mixed        $value    Value to check
295 295
      * @param    int        $decimals
296 296
      * @param    bool        $no_commas
297
-     * @return    bool
297
+     * @return    string
298 298
      */
299 299
     public static function FIXEDFORMAT($value, $decimals = 2, $no_commas = false)
300 300
     {
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
      * STRINGLENGTH
410 410
      *
411 411
      * @param    string    $value    Value
412
-     * @return    string
412
+     * @return    integer
413 413
      */
414 414
     public static function STRINGLENGTH($value = '')
415 415
     {
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
      * RETURNSTRING
557 557
      *
558 558
      * @param    mixed    $testValue    Value to check
559
-     * @return    bool
559
+     * @return    string|null
560 560
      */
561 561
     public static function RETURNSTRING($testValue = '')
562 562
     {
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
      *
575 575
      * @param    mixed    $value    Value to check
576 576
      * @param    string    $format    Format mask to use
577
-     * @return    bool
577
+     * @return    string
578 578
      */
579 579
     public static function TEXTFORMAT($value, $format)
580 580
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Cell.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
      *
576 576
      *    @param    string    $pCoordinateString
577 577
      *    @throws    Exception
578
-     *    @return    array    Array containing column and row (indexes 0 and 1)
578
+     *    @return    string[]    Array containing column and row (indexes 0 and 1)
579 579
      */
580 580
     public static function coordinateFromString($pCoordinateString = 'A1')
581 581
     {
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
      *    Calculate range boundaries
758 758
      *
759 759
      *    @param    string    $pRange        Cell range (e.g. A1:A1)
760
-     *    @return    array    Range coordinates array(Start Cell, End Cell)
760
+     *    @return    integer    Range coordinates array(Start Cell, End Cell)
761 761
      *                    where Start Cell and End Cell are arrays (Column ID, Row Number)
762 762
      */
763 763
     public static function getRangeBoundaries($pRange = 'A1:A1')
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -845,11 +845,11 @@
 block discarded – undo
845 845
                 $_indexCache[$pColumnIndex] = chr(65 + $pColumnIndex);
846 846
             } elseif ($pColumnIndex < 702) {
847 847
                 $_indexCache[$pColumnIndex] = chr(64 + ($pColumnIndex / 26)) .
848
-                                              chr(65 + $pColumnIndex % 26);
848
+                                                chr(65 + $pColumnIndex % 26);
849 849
             } else {
850 850
                 $_indexCache[$pColumnIndex] = chr(64 + (($pColumnIndex - 26) / 676)) .
851
-                                              chr(65 + ((($pColumnIndex - 26) % 676) / 26)) .
852
-                                              chr(65 + $pColumnIndex % 26);
851
+                                                chr(65 + ((($pColumnIndex - 26) % 676) / 26)) .
852
+                                                chr(65 + $pColumnIndex % 26);
853 853
             }
854 854
         }
855 855
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/DataSeries.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     /**
178 178
      * Get Plot Grouping Type
179 179
      *
180
-     * @return string
180
+     * @return boolean
181 181
      */
182 182
     public function getPlotGrouping()
183 183
     {
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     /**
201 201
      * Get Plot Direction
202 202
      *
203
-     * @return string
203
+     * @return boolean
204 204
      */
205 205
     public function getPlotDirection()
206 206
     {
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
     /**
348 348
      * Get Smooth Line
349 349
      *
350
-     * @return bool
350
+     * @return string
351 351
      */
352 352
     public function getSmoothLine()
353 353
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
     const TYPE_PIECHART = 'pieChart';
36 36
     const TYPE_PIECHART_3D = 'pie3DChart';
37 37
     const TYPE_DOUGHTNUTCHART = 'doughnutChart';
38
-    const TYPE_DONUTCHART = self::TYPE_DOUGHTNUTCHART;    //    Synonym
38
+    const TYPE_DONUTCHART = self::TYPE_DOUGHTNUTCHART; //    Synonym
39 39
     const TYPE_SCATTERCHART = 'scatterChart';
40 40
     const TYPE_SURFACECHART = 'surfaceChart';
41 41
     const TYPE_SURFACECHART_3D = 'surface3DChart';
42 42
     const TYPE_RADARCHART = 'radarChart';
43 43
     const TYPE_BUBBLECHART = 'bubbleChart';
44 44
     const TYPE_STOCKCHART = 'stockChart';
45
-    const TYPE_CANDLECHART = self::TYPE_STOCKCHART;       //    Synonym
45
+    const TYPE_CANDLECHART = self::TYPE_STOCKCHART; //    Synonym
46 46
 
47 47
     const GROUPING_CLUSTERED = 'clustered';
48 48
     const GROUPING_STACKED = 'stacked';
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/DataSeriesValues.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,6 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
     /**
82 82
      * Create a new DataSeriesValues object
83
+     * @param string $dataSource
83 84
      */
84 85
     public function __construct($dataType = self::DATASERIES_TYPE_NUMBER, $dataSource = null, $formatCode = null, $pointCount = 0, $dataValues = [], $marker = null)
85 86
     {
@@ -209,7 +210,7 @@  discard block
 block discarded – undo
209 210
     /**
210 211
      * Identify if the Data Series is a multi-level or a simple series
211 212
      *
212
-     * @return    bool
213
+     * @return    boolean|null
213 214
      */
214 215
     public function isMultiLevelSeries()
215 216
     {
@@ -223,7 +224,7 @@  discard block
 block discarded – undo
223 224
     /**
224 225
      * Return the level count of a multi-level Data Series
225 226
      *
226
-     * @return    bool
227
+     * @return    integer
227 228
      */
228 229
     public function multiLevelCount()
229 230
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/CSV.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@
 block discarded – undo
387 387
     /**
388 388
      * Get Contiguous
389 389
      *
390
-     * @return bool
390
+     * @return integer
391 391
      */
392 392
     public function getContiguous()
393 393
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -254,8 +254,8 @@
 block discarded – undo
254 254
         $sheet = $spreadsheet->setActiveSheetIndex($this->sheetIndex);
255 255
 
256 256
         $escapeEnclosures = ['\\' . $this->enclosure,
257
-                                   $this->enclosure . $this->enclosure,
258
-                                 ];
257
+                                    $this->enclosure . $this->enclosure,
258
+                                    ];
259 259
 
260 260
         // Set our starting row based on whether we're in contiguous mode or not
261 261
         $currentRow = 1;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@
 block discarded – undo
260 260
         // Set our starting row based on whether we're in contiguous mode or not
261 261
         $currentRow = 1;
262 262
         if ($this->contiguous) {
263
-            $currentRow = ($this->contiguousRow == -1) ? $sheet->getHighestRow(): $this->contiguousRow;
263
+            $currentRow = ($this->contiguousRow == -1) ? $sheet->getHighestRow() : $this->contiguousRow;
264 264
         }
265 265
 
266 266
         // Loop through each line of the file in turn
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Excel5.php 2 patches
Doc Comments   +16 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1207,7 +1207,7 @@  discard block
 block discarded – undo
1207 1207
      *
1208 1208
      * @param string $data   Data stream to read from
1209 1209
      * @param int    $pos    Position to start reading from
1210
-     * @param int    $length Record data length
1210
+     * @param integer $len
1211 1211
      *
1212 1212
      * @return string Record data
1213 1213
      */
@@ -1743,6 +1743,7 @@  discard block
 block discarded – undo
1743 1743
      * @var int         Block for which to create decrypto
1744 1744
      * @var string $valContext MD5 context state
1745 1745
      *
1746
+     * @param string $valContext
1746 1747
      * @return Excel5\RC4
1747 1748
      */
1748 1749
     private function makeKey($block, $valContext)
@@ -1778,6 +1779,11 @@  discard block
 block discarded – undo
1778 1779
      * @var string $hashedsalt_data Hashed salt data
1779 1780
      * @var string &$valContext     Set to the MD5 context of the value
1780 1781
      *
1782
+     * @param string $password
1783
+     * @param string $docid
1784
+     * @param string $salt_data
1785
+     * @param string $hashedsalt_data
1786
+     * @param string $valContext
1781 1787
      * @return bool Success
1782 1788
      */
1783 1789
     private function verifyPassword($password, $docid, $salt_data, $hashedsalt_data, &$valContext)
@@ -5157,7 +5163,7 @@  discard block
 block discarded – undo
5157 5163
      * is in one piece.
5158 5164
      * Moves to next current position in data stream to start of next record different from a CONtINUE record
5159 5165
      *
5160
-     * @return array
5166
+     * @return integer|null
5161 5167
      */
5162 5168
     private function getSplicedRecordData()
5163 5169
     {
@@ -5257,8 +5263,7 @@  discard block
 block discarded – undo
5257 5263
      * Take array of tokens together with additional data for formula and return human readable formula
5258 5264
      *
5259 5265
      * @param array $tokens
5260
-     * @param array $additionalData Additional binary data going with the formula
5261
-     * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
5266
+     * @param string $additionalData Additional binary data going with the formula
5262 5267
      * @return string Human readable formula
5263 5268
      */
5264 5269
     private function createFormulaFromTokens($tokens, $additionalData)
@@ -5421,8 +5426,9 @@  discard block
 block discarded – undo
5421 5426
      *
5422 5427
      * @param string Formula data
5423 5428
      * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas
5429
+     * @param string $formulaData
5424 5430
      * @throws Exception
5425
-     * @return array
5431
+     * @return string
5426 5432
      */
5427 5433
     private function getNextToken($formulaData, $baseCell = 'A1')
5428 5434
     {
@@ -6990,7 +6996,7 @@  discard block
 block discarded – undo
6990 6996
      * section 2.5.15
6991 6997
      *
6992 6998
      * @param string $subData
6993
-     * @return array
6999
+     * @return string
6994 7000
      */
6995 7001
     private function readBIFF8CellRangeAddressList($subData)
6996 7002
     {
@@ -7372,6 +7378,9 @@  discard block
 block discarded – undo
7372 7378
         return $value;
7373 7379
     }
7374 7380
 
7381
+    /**
7382
+     * @param integer $rknum
7383
+     */
7375 7384
     private static function getIEEE754($rknum)
7376 7385
     {
7377 7386
         if (($rknum & 0x02) != 0) {
@@ -7402,7 +7411,7 @@  discard block
 block discarded – undo
7402 7411
      * Get UTF-8 string from (compressed or uncompressed) UTF-16 string
7403 7412
      *
7404 7413
      * @param string $string
7405
-     * @param bool $compressed
7414
+     * @param string|boolean $compressed
7406 7415
      * @return string
7407 7416
      */
7408 7417
     private static function encodeUTF16($string, $compressed = '')
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1122,7 +1122,7 @@
 block discarded – undo
1122 1122
                             // $range should look like one of these
1123 1123
                             //        Foo!$C$7:$J$66
1124 1124
                             //        Bar!$A$1:$IV$2
1125
-                            $explodes = explode('!', $range);    // FIXME: what if sheetname contains exclamation mark?
1125
+                            $explodes = explode('!', $range); // FIXME: what if sheetname contains exclamation mark?
1126 1126
                             $sheetName = trim($explodes[0], "'");
1127 1127
                             if (count($explodes) == 2) {
1128 1128
                                 if (strpos($explodes[1], ':') === false) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/OLE.php 2 patches
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @acces public
94 94
      * @param string $file
95 95
      * @throws \PhpSpreadsheet\Reader\Exception
96
-     * @return mixed true on success, PEAR_Error on failure
96
+     * @return boolean true on success, PEAR_Error on failure
97 97
      */
98 98
     public function read($file)
99 99
     {
@@ -223,6 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * Reads a signed char.
225 225
      * @param   resource  file handle
226
+     * @param resource $fh
226 227
      * @return  int
227 228
      */
228 229
     private static function _readInt1($fh)
@@ -235,6 +236,7 @@  discard block
 block discarded – undo
235 236
     /**
236 237
      * Reads an unsigned short (2 octets).
237 238
      * @param   resource  file handle
239
+     * @param resource $fh
238 240
      * @return  int
239 241
      */
240 242
     private static function _readInt2($fh)
@@ -247,6 +249,7 @@  discard block
 block discarded – undo
247 249
     /**
248 250
      * Reads an unsigned long (4 octets).
249 251
      * @param   resource  file handle
252
+     * @param resource $fh
250 253
      * @return  int
251 254
      */
252 255
     private static function _readInt4($fh)
@@ -261,7 +264,8 @@  discard block
 block discarded – undo
261 264
      * creates an OLE_PPS object for each one.
262 265
      *
263 266
      * @param  int  the block id of the first block
264
-     * @return mixed true on success, PEAR_Error on failure
267
+     * @param integer $blockId
268
+     * @return boolean true on success, PEAR_Error on failure
265 269
      */
266 270
     public function _readPpsWks($blockId)
267 271
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@
 block discarded – undo
266 266
     public function _readPpsWks($blockId)
267 267
     {
268 268
         $fh = $this->getStream($blockId);
269
-        for ($pos = 0;; $pos += 128) {
269
+        for ($pos = 0; ; $pos += 128) {
270 270
             fseek($fh, $pos, SEEK_SET);
271 271
             $nameUtf16 = fread($fh, 64);
272 272
             $nameLength = self::_readInt2($fh);
Please login to merge, or discard this patch.