Completed
Pull Request — develop (#189)
by Manuel
35:39
created
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.
docs/Examples/Reading WorkBook Data/exampleWorkBookReader03.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 echo '<b>Custom Properties: </b><br />';
42 42
 /*  Loop through the list of custom properties  **/
43 43
 foreach ($customPropertyList as $customPropertyName) {
44
-    echo '<b>',$customPropertyName,': </b>';
44
+    echo '<b>', $customPropertyName, ': </b>';
45 45
     /*  Retrieve the property value  **/
46 46
     $propertyValue = $spreadsheet->getProperties()->getCustomPropertyValue($customPropertyName);
47 47
     /*  Retrieve the property type  **/
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Reader/Xlsx.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -294,6 +294,11 @@  discard block
 block discarded – undo
294 294
         return isset($c->v) ? (string) $c->v : null;
295 295
     }
296 296
 
297
+    /**
298
+     * @param string $r
299
+     * @param string $cellDataType
300
+     * @param string $castBaseType
301
+     */
297 302
     private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType)
298 303
     {
299 304
         $cellDataType = 'f';
@@ -2159,6 +2164,9 @@  discard block
 block discarded – undo
2159 2164
         return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add");
2160 2165
     }
2161 2166
 
2167
+    /**
2168
+     * @param string $style
2169
+     */
2162 2170
     private static function toCSSArray($style)
2163 2171
     {
2164 2172
         $style = str_replace(["\r", "\n"], '', $style);
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation.php 1 patch
Doc Comments   +19 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2075,7 +2075,6 @@  discard block
 block discarded – undo
2075 2075
     /**
2076 2076
      * Unset an instance of this class.
2077 2077
      *
2078
-     * @param Spreadsheet $spreadsheet Injected spreadsheet identifying the instance to unset
2079 2078
      */
2080 2079
     public function __destruct()
2081 2080
     {
@@ -2329,6 +2328,10 @@  discard block
 block discarded – undo
2329 2328
         return false;
2330 2329
     }
2331 2330
 
2331
+    /**
2332
+     * @param string $fromSeparator
2333
+     * @param string $toSeparator
2334
+     */
2332 2335
     public static function translateSeparator($fromSeparator, $toSeparator, $formula, &$inBraces)
2333 2336
     {
2334 2337
         $strlen = mb_strlen($formula);
@@ -2672,6 +2675,9 @@  discard block
 block discarded – undo
2672 2675
         return $result;
2673 2676
     }
2674 2677
 
2678
+    /**
2679
+     * @param string $cellReference
2680
+     */
2675 2681
     public function getValueFromCache($cellReference, &$cellValue)
2676 2682
     {
2677 2683
         // Is calculation cacheing enabled?
@@ -2815,7 +2821,7 @@  discard block
 block discarded – undo
2815 2821
      *
2816 2822
      * @param mixed &$matrix matrix operand
2817 2823
      *
2818
-     * @return int[] An array comprising the number of rows, and number of columns
2824
+     * @return integer[] An array comprising the number of rows, and number of columns
2819 2825
      */
2820 2826
     private static function getMatrixDimensions(&$matrix)
2821 2827
     {
@@ -3000,6 +3006,9 @@  discard block
 block discarded – undo
3000 3006
         }
3001 3007
     }
3002 3008
 
3009
+    /**
3010
+     * @param string $formula
3011
+     */
3003 3012
     private function convertMatrixReferences($formula)
3004 3013
     {
3005 3014
         static $matrixReplaceFrom = ['{', ';', '}'];
@@ -3088,6 +3097,10 @@  discard block
 block discarded – undo
3088 3097
     ];
3089 3098
 
3090 3099
     // Convert infix to postfix notation
3100
+
3101
+    /**
3102
+     * @param string $formula
3103
+     */
3091 3104
     private function _parseFormula($formula, Cell $pCell = null)
3092 3105
     {
3093 3106
         if (($formula = $this->convertMatrixReferences(trim($formula))) === false) {
@@ -3824,6 +3837,9 @@  discard block
 block discarded – undo
3824 3837
         return true;
3825 3838
     }
3826 3839
 
3840
+    /**
3841
+     * @param string|null $cellID
3842
+     */
3827 3843
     private function executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays = false)
3828 3844
     {
3829 3845
         //    If we're dealing with matrix operations, we want a matrix result
@@ -3964,7 +3980,7 @@  discard block
 block discarded – undo
3964 3980
 
3965 3981
     /**
3966 3982
      * @param string $matrixFunction
3967
-     * @param mixed $cellID
3983
+     * @param string|null $cellID
3968 3984
      * @param mixed $operand1
3969 3985
      * @param mixed $operand2
3970 3986
      * @param mixed $operation
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/DateTime.php 1 patch
Doc Comments   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
      *
472 472
      * @category Date/Time Functions
473 473
      *
474
-     * @param string $dateValue Text that represents a date in a Microsoft Excel date format.
474
+     * @param integer $dateValue Text that represents a date in a Microsoft Excel date format.
475 475
      *                                    For example, "1/30/2008" or "30-Jan-2008" are text strings within
476 476
      *                                    quotation marks that represent dates. Using the default date
477 477
      *                                    system in Excel for Windows, date_text must represent a date from
@@ -657,9 +657,9 @@  discard block
 block discarded – undo
657 657
     /**
658 658
      * DATEDIF.
659 659
      *
660
-     * @param mixed $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object
660
+     * @param integer $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object
661 661
      *                                    or a standard date string
662
-     * @param mixed $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object
662
+     * @param integer $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object
663 663
      *                                    or a standard date string
664 664
      * @param string $unit
665 665
      *
@@ -783,9 +783,9 @@  discard block
 block discarded – undo
783 783
      *
784 784
      * @category Date/Time Functions
785 785
      *
786
-     * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
786
+     * @param integer $startDate Excel date serial value (float), PHP date timestamp (integer),
787 787
      *                                        PHP DateTime object, or a standard date string
788
-     * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
788
+     * @param integer $endDate Excel date serial value (float), PHP date timestamp (integer),
789 789
      *                                        PHP DateTime object, or a standard date string
790 790
      * @param bool $method US or European Method
791 791
      *                                        FALSE or omitted: U.S. (NASD) method. If the starting date is
@@ -844,9 +844,9 @@  discard block
 block discarded – undo
844 844
      *
845 845
      * @category Date/Time Functions
846 846
      *
847
-     * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer),
847
+     * @param integer $startDate Excel date serial value (float), PHP date timestamp (integer),
848 848
      *                                    PHP DateTime object, or a standard date string
849
-     * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer),
849
+     * @param integer $endDate Excel date serial value (float), PHP date timestamp (integer),
850 850
      *                                    PHP DateTime object, or a standard date string
851 851
      * @param int $method Method used for the calculation
852 852
      *                                        0 or omitted    US (NASD) 30/360
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
      * Excel Function:
1136 1136
      *        DAY(dateValue)
1137 1137
      *
1138
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1138
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1139 1139
      *                                    PHP DateTime object, or a standard date string
1140 1140
      *
1141 1141
      * @return int Day of the month
@@ -1246,7 +1246,7 @@  discard block
 block discarded – undo
1246 1246
      * Excel Function:
1247 1247
      *        WEEKNUM(dateValue[,style])
1248 1248
      *
1249
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1249
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1250 1250
      *                                    PHP DateTime object, or a standard date string
1251 1251
      * @param int $method Week begins on Sunday or Monday
1252 1252
      *                                        1 or omitted    Week begins on Sunday.
@@ -1299,7 +1299,7 @@  discard block
 block discarded – undo
1299 1299
      * Excel Function:
1300 1300
      *        MONTH(dateValue)
1301 1301
      *
1302
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1302
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1303 1303
      *                                    PHP DateTime object, or a standard date string
1304 1304
      *
1305 1305
      * @return int Month of the year
@@ -1332,7 +1332,7 @@  discard block
 block discarded – undo
1332 1332
      * Excel Function:
1333 1333
      *        YEAR(dateValue)
1334 1334
      *
1335
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1335
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1336 1336
      *                                    PHP DateTime object, or a standard date string
1337 1337
      *
1338 1338
      * @return int Year
@@ -1364,7 +1364,7 @@  discard block
 block discarded – undo
1364 1364
      * Excel Function:
1365 1365
      *        HOUR(timeValue)
1366 1366
      *
1367
-     * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
1367
+     * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer),
1368 1368
      *                                    PHP DateTime object, or a standard time string
1369 1369
      *
1370 1370
      * @return int Hour
@@ -1405,7 +1405,7 @@  discard block
 block discarded – undo
1405 1405
      * Excel Function:
1406 1406
      *        MINUTE(timeValue)
1407 1407
      *
1408
-     * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
1408
+     * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer),
1409 1409
      *                                    PHP DateTime object, or a standard time string
1410 1410
      *
1411 1411
      * @return int Minute
@@ -1446,7 +1446,7 @@  discard block
 block discarded – undo
1446 1446
      * Excel Function:
1447 1447
      *        SECOND(timeValue)
1448 1448
      *
1449
-     * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer),
1449
+     * @param integer $timeValue Excel date serial value (float), PHP date timestamp (integer),
1450 1450
      *                                    PHP DateTime object, or a standard time string
1451 1451
      *
1452 1452
      * @return int Second
@@ -1489,7 +1489,7 @@  discard block
 block discarded – undo
1489 1489
      * Excel Function:
1490 1490
      *        EDATE(dateValue,adjustmentMonths)
1491 1491
      *
1492
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1492
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1493 1493
      *                                        PHP DateTime object, or a standard date string
1494 1494
      * @param int $adjustmentMonths The number of months before or after start_date.
1495 1495
      *                                        A positive value for months yields a future date;
@@ -1535,7 +1535,7 @@  discard block
 block discarded – undo
1535 1535
      * Excel Function:
1536 1536
      *        EOMONTH(dateValue,adjustmentMonths)
1537 1537
      *
1538
-     * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer),
1538
+     * @param integer $dateValue Excel date serial value (float), PHP date timestamp (integer),
1539 1539
      *                                        PHP DateTime object, or a standard date string
1540 1540
      * @param int $adjustmentMonths The number of months before or after start_date.
1541 1541
      *                                        A positive value for months yields a future date;
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/TextData.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      * This function converts a number to text using currency format, with the decimals rounded to the specified place.
170 170
      * The format used is $#,##0.00_);($#,##0.00)..
171 171
      *
172
-     * @param float $value The value to format
172
+     * @param integer $value The value to format
173 173
      * @param int $decimals The number of digits to display to the right of the decimal point.
174 174
      *                                    If decimals is negative, number is rounded to the left of the decimal point.
175 175
      *                                    If you omit decimals, it is assumed to be 2
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/EigenvalueDecomposition.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -819,7 +819,7 @@  discard block
 block discarded – undo
819 819
     /**
820 820
      * Return the eigenvector matrix.
821 821
      *
822
-     * @return V
822
+     * @return Matrix
823 823
      */
824 824
     public function getV()
825 825
     {
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
     /**
850 850
      * Return the block diagonal eigenvalue matrix.
851 851
      *
852
-     * @return D
852
+     * @return Matrix
853 853
      */
854 854
     public function getD()
855 855
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -778,7 +778,7 @@
 block discarded – undo
778 778
         }
779 779
     }
780 780
 
781
- // end hqr2
781
+    // end hqr2
782 782
 
783 783
     /**
784 784
      * Constructor: Check for symmetry, then construct the eigenvalue decomposition.
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/Matrix.php 1 patch
Doc Comments   +2 added lines, -19 removed lines patch added patch discarded remove patch
@@ -149,10 +149,6 @@  discard block
 block discarded – undo
149 149
      *
150 150
      *    Get a submatrix
151 151
      *
152
-     * @param int $i0 Initial row index
153
-     * @param int $iF Final row index
154
-     * @param int $j0 Initial column index
155
-     * @param int $jF Final column index
156 152
      *
157 153
      * @return Matrix Submatrix
158 154
      */
@@ -345,7 +341,7 @@  discard block
 block discarded – undo
345 341
      *
346 342
      * @param int $m Row dimension
347 343
      * @param int $n Column dimension
348
-     * @param mixed $c Diagonal value
344
+     * @param integer $c Diagonal value
349 345
      *
350 346
      * @return Matrix Diagonal matrix
351 347
      */
@@ -429,7 +425,7 @@  discard block
 block discarded – undo
429 425
      *
430 426
      *    Sum of diagonal elements
431 427
      *
432
-     * @return float Sum of diagonal elements
428
+     * @return integer Sum of diagonal elements
433 429
      */
434 430
     public function trace()
435 431
     {
@@ -458,7 +454,6 @@  discard block
 block discarded – undo
458 454
      *
459 455
      *    A + B
460 456
      *
461
-     * @param mixed $B Matrix/Array
462 457
      *
463 458
      * @return Matrix Sum
464 459
      */
@@ -500,7 +495,6 @@  discard block
 block discarded – undo
500 495
      *
501 496
      *    A = A + B
502 497
      *
503
-     * @param mixed $B Matrix/Array
504 498
      *
505 499
      * @return Matrix Sum
506 500
      */
@@ -556,7 +550,6 @@  discard block
 block discarded – undo
556 550
      *
557 551
      *    A - B
558 552
      *
559
-     * @param mixed $B Matrix/Array
560 553
      *
561 554
      * @return Matrix Sum
562 555
      */
@@ -598,7 +591,6 @@  discard block
 block discarded – undo
598 591
      *
599 592
      *    A = A - B
600 593
      *
601
-     * @param mixed $B Matrix/Array
602 594
      *
603 595
      * @return Matrix Sum
604 596
      */
@@ -655,7 +647,6 @@  discard block
 block discarded – undo
655 647
      *    Element-by-element multiplication
656 648
      *    Cij = Aij * Bij
657 649
      *
658
-     * @param mixed $B Matrix/Array
659 650
      *
660 651
      * @return Matrix Matrix Cij
661 652
      */
@@ -698,7 +689,6 @@  discard block
 block discarded – undo
698 689
      *    Element-by-element multiplication
699 690
      *    Aij = Aij * Bij
700 691
      *
701
-     * @param mixed $B Matrix/Array
702 692
      *
703 693
      * @return Matrix Matrix Aij
704 694
      */
@@ -755,7 +745,6 @@  discard block
 block discarded – undo
755 745
      *    Element-by-element right division
756 746
      *    A / B
757 747
      *
758
-     * @param Matrix $B Matrix B
759 748
      *
760 749
      * @return Matrix Division result
761 750
      */
@@ -817,7 +806,6 @@  discard block
 block discarded – undo
817 806
      *    Element-by-element right division
818 807
      *    Aij = Aij / Bij
819 808
      *
820
-     * @param mixed $B Matrix/Array
821 809
      *
822 810
      * @return Matrix Matrix Aij
823 811
      */
@@ -860,7 +848,6 @@  discard block
 block discarded – undo
860 848
      *    Element-by-element Left division
861 849
      *    A / B
862 850
      *
863
-     * @param Matrix $B Matrix B
864 851
      *
865 852
      * @return Matrix Division result
866 853
      */
@@ -903,7 +890,6 @@  discard block
 block discarded – undo
903 890
      *    Element-by-element Left division
904 891
      *    Aij = Aij / Bij
905 892
      *
906
-     * @param mixed $B Matrix/Array
907 893
      *
908 894
      * @return Matrix Matrix Aij
909 895
      */
@@ -945,7 +931,6 @@  discard block
 block discarded – undo
945 931
      *
946 932
      *    Matrix multiplication
947 933
      *
948
-     * @param mixed $n Matrix/Array/Scalar
949 934
      *
950 935
      * @return Matrix Product
951 936
      */
@@ -1038,7 +1023,6 @@  discard block
 block discarded – undo
1038 1023
      *
1039 1024
      *    A = A ^ B
1040 1025
      *
1041
-     * @param mixed $B Matrix/Array
1042 1026
      *
1043 1027
      * @return Matrix Sum
1044 1028
      */
@@ -1094,7 +1078,6 @@  discard block
 block discarded – undo
1094 1078
      *
1095 1079
      *    A = A & B
1096 1080
      *
1097
-     * @param mixed $B Matrix/Array
1098 1081
      *
1099 1082
      * @return Matrix Sum
1100 1083
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Shared/JAMA/SingularValueDecomposition.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
     /**
442 442
      * Return the left singular vectors.
443 443
      *
444
-     * @return U
444
+     * @return Matrix
445 445
      */
446 446
     public function getU()
447 447
     {
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
     /**
452 452
      * Return the right singular vectors.
453 453
      *
454
-     * @return V
454
+     * @return Matrix
455 455
      */
456 456
     public function getV()
457 457
     {
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
     /**
472 472
      * Return the diagonal matrix of singular values.
473 473
      *
474
-     * @return S
474
+     * @return Matrix
475 475
      */
476 476
     public function getS()
477 477
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -436,7 +436,7 @@
 block discarded – undo
436 436
         } // end while
437 437
     }
438 438
 
439
- // end constructor
439
+    // end constructor
440 440
 
441 441
     /**
442 442
      * Return the left singular vectors.
Please login to merge, or discard this patch.