Completed
Push — develop ( 942ad7...b0621f )
by Adrien
22:01 queued 09:22
created
src/PhpSpreadsheet/CachedObjectStorageFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
     /**
127 127
      * Return the current cache storage class
128 128
      *
129
-     * @return \CachedObjectStorage\ICache|null
129
+     * @return string
130 130
      **/
131 131
     public static function getCacheStorageClass()
132 132
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation.php 3 patches
Doc Comments   +26 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2110,7 +2110,6 @@  discard block
 block discarded – undo
2110 2110
      * Unset an instance of this class
2111 2111
      *
2112 2112
      * @access    public
2113
-     * @param   Spreadsheet $spreadsheet  Injected spreadsheet identifying the instance to unset
2114 2113
      */
2115 2114
     public function __destruct()
2116 2115
     {
@@ -2401,6 +2400,10 @@  discard block
 block discarded – undo
2401 2400
         return $formula;
2402 2401
     }
2403 2402
 
2403
+    /**
2404
+     * @param string $fromSeparator
2405
+     * @param string $toSeparator
2406
+     */
2404 2407
     private static function translateFormula($from, $to, $formula, $fromSeparator, $toSeparator)
2405 2408
     {
2406 2409
         //    Convert any Excel function names to the required language
@@ -2718,6 +2721,9 @@  discard block
 block discarded – undo
2718 2721
     }
2719 2722
 
2720 2723
 
2724
+    /**
2725
+     * @param string $cellReference
2726
+     */
2721 2727
     public function getValueFromCache($cellReference, &$cellValue)
2722 2728
     {
2723 2729
         // Is calculation cacheing enabled?
@@ -2732,6 +2738,9 @@  discard block
 block discarded – undo
2732 2738
         return false;
2733 2739
     }
2734 2740
 
2741
+    /**
2742
+     * @param string $cellReference
2743
+     */
2735 2744
     public function saveValueToCache($cellReference, $cellValue)
2736 2745
     {
2737 2746
         if ($this->calculationCacheEnabled) {
@@ -2851,7 +2860,7 @@  discard block
 block discarded – undo
2851 2860
      * Read the dimensions of a matrix, and re-index it with straight numeric keys starting from row 0, column 0
2852 2861
      *
2853 2862
      * @param    mixed        &$matrix        matrix operand
2854
-     * @return    array        An array comprising the number of rows, and number of columns
2863
+     * @return    integer[]        An array comprising the number of rows, and number of columns
2855 2864
      */
2856 2865
     private static function getMatrixDimensions(&$matrix)
2857 2866
     {
@@ -3002,7 +3011,7 @@  discard block
 block discarded – undo
3002 3011
      * Format type and details of an operand for display in the log (based on operand type)
3003 3012
      *
3004 3013
      * @param    mixed        $value    First matrix operand
3005
-     * @return    mixed
3014
+     * @return    string|null
3006 3015
      */
3007 3016
     private function showTypeDetails($value)
3008 3017
     {
@@ -3036,6 +3045,9 @@  discard block
 block discarded – undo
3036 3045
     }
3037 3046
 
3038 3047
 
3048
+    /**
3049
+     * @param string $formula
3050
+     */
3039 3051
     private function convertMatrixReferences($formula)
3040 3052
     {
3041 3053
         static $matrixReplaceFrom = array('{', ';', '}');
@@ -3126,6 +3138,10 @@  discard block
 block discarded – undo
3126 3138
     );
3127 3139
 
3128 3140
     // Convert infix to postfix notation
3141
+
3142
+    /**
3143
+     * @param string $formula
3144
+     */
3129 3145
     private function _parseFormula($formula, Cell $pCell = null)
3130 3146
     {
3131 3147
         if (($formula = $this->convertMatrixReferences(trim($formula))) === false) {
@@ -3493,6 +3509,10 @@  discard block
 block discarded – undo
3493 3509
     }
3494 3510
 
3495 3511
     // evaluate postfix notation
3512
+
3513
+    /**
3514
+     * @param string $cellID
3515
+     */
3496 3516
     private function processTokenStack($tokens, $cellID = null, Cell $pCell = null)
3497 3517
     {
3498 3518
         if ($tokens == false) {
@@ -4077,6 +4097,9 @@  discard block
 block discarded – undo
4077 4097
         return strcmp($inversedStr1, $inversedStr2);
4078 4098
     }
4079 4099
 
4100
+    /**
4101
+     * @param string $matrixFunction
4102
+     */
4080 4103
     private function executeNumericBinaryOperation($cellID, $operand1, $operand2, $operation, $matrixFunction, &$stack)
4081 4104
     {
4082 4105
         //    Validate the two operands
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         'NULL' => null,
233 233
     ];
234 234
 
235
-     //    PhpSpreadsheet functions
235
+        //    PhpSpreadsheet functions
236 236
     private static $phpSpreadsheetFunctions = [
237 237
         'ABS' => [
238 238
             'category' => Calculation\Categories::CATEGORY_MATH_AND_TRIG,
@@ -3073,13 +3073,13 @@  discard block
 block discarded – undo
3073 3073
         $pCellParent = ($pCell !== null) ? $pCell->getWorksheet() : null;
3074 3074
 
3075 3075
         $regexpMatchString = '/^(' . self::CALCULATION_REGEXP_FUNCTION .
3076
-                               '|' . self::CALCULATION_REGEXP_CELLREF .
3077
-                               '|' . self::CALCULATION_REGEXP_NUMBER .
3078
-                               '|' . self::CALCULATION_REGEXP_STRING .
3079
-                               '|' . self::CALCULATION_REGEXP_OPENBRACE .
3080
-                               '|' . self::CALCULATION_REGEXP_NAMEDRANGE .
3081
-                               '|' . self::CALCULATION_REGEXP_ERROR .
3082
-                             ')/si';
3076
+                                '|' . self::CALCULATION_REGEXP_CELLREF .
3077
+                                '|' . self::CALCULATION_REGEXP_NUMBER .
3078
+                                '|' . self::CALCULATION_REGEXP_STRING .
3079
+                                '|' . self::CALCULATION_REGEXP_OPENBRACE .
3080
+                                '|' . self::CALCULATION_REGEXP_NAMEDRANGE .
3081
+                                '|' . self::CALCULATION_REGEXP_ERROR .
3082
+                                ')/si';
3083 3083
 
3084 3084
         //    Start with initialisation
3085 3085
         $index = 0;
Please login to merge, or discard this patch.
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -109,10 +109,10 @@  discard block
 block discarded – undo
109 109
      * @var array
110 110
      */
111 111
     private static $operators = [
112
-        '+' => true,    '-' => true,    '*' => true,    '/' => true,
113
-        '^' => true,    '&' => true,    '%' => false,    '~' => false,
114
-        '>' => true,    '<' => true,    '=' => true,    '>=' => true,
115
-        '<=' => true,    '<>' => true,    '|' => true,    ':' => true,
112
+        '+' => true, '-' => true, '*' => true, '/' => true,
113
+        '^' => true, '&' => true, '%' => false, '~' => false,
114
+        '>' => true, '<' => true, '=' => true, '>=' => true,
115
+        '<=' => true, '<>' => true, '|' => true, ':' => true,
116 116
     ];
117 117
 
118 118
     /**
@@ -121,10 +121,10 @@  discard block
 block discarded – undo
121 121
      * @var array
122 122
      */
123 123
     private static $binaryOperators = [
124
-        '+' => true,    '-' => true,    '*' => true,    '/' => true,
125
-        '^' => true,    '&' => true,    '>' => true,    '<' => true,
126
-        '=' => true,    '>=' => true,    '<=' => true,    '<>' => true,
127
-        '|' => true,    ':' => true,
124
+        '+' => true, '-' => true, '*' => true, '/' => true,
125
+        '^' => true, '&' => true, '>' => true, '<' => true,
126
+        '=' => true, '>=' => true, '<=' => true, '<>' => true,
127
+        '|' => true, ':' => true,
128 128
     ];
129 129
 
130 130
     /**
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      *
190 190
      * @var string
191 191
      */
192
-    private static $localeLanguage = 'en_us';                    //    US English    (default locale)
192
+    private static $localeLanguage = 'en_us'; //    US English    (default locale)
193 193
 
194 194
     /**
195 195
      * List of available locale settings
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      * @var string[]
199 199
      */
200 200
     private static $validLocaleLanguages = [
201
-        'en',        //    English        (default language)
201
+        'en', //    English        (default language)
202 202
     ];
203 203
 
204 204
     /**
@@ -2279,7 +2279,7 @@  discard block
 block discarded – undo
2279 2279
                 //    Retrieve the list of locale or language specific function names
2280 2280
                 $localeFunctions = file($functionNamesFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
2281 2281
                 foreach ($localeFunctions as $localeFunction) {
2282
-                    list($localeFunction) = explode('##', $localeFunction);    //    Strip out comments
2282
+                    list($localeFunction) = explode('##', $localeFunction); //    Strip out comments
2283 2283
                     if (strpos($localeFunction, '=') !== false) {
2284 2284
                         list($fName, $lfName) = explode('=', $localeFunction);
2285 2285
                         $fName = trim($fName);
@@ -2304,7 +2304,7 @@  discard block
 block discarded – undo
2304 2304
                 if (file_exists($configFile)) {
2305 2305
                     $localeSettings = file($configFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
2306 2306
                     foreach ($localeSettings as $localeSetting) {
2307
-                        list($localeSetting) = explode('##', $localeSetting);    //    Strip out comments
2307
+                        list($localeSetting) = explode('##', $localeSetting); //    Strip out comments
2308 2308
                         if (strpos($localeSetting, '=') !== false) {
2309 2309
                             list($settingName, $settingValue) = explode('=', $localeSetting);
2310 2310
                             $settingName = strtoupper(trim($settingName));
@@ -3034,12 +3034,12 @@  discard block
 block discarded – undo
3034 3034
     //    These operators always work on two values
3035 3035
     //    Array key is the operator, the value indicates whether this is a left or right associative operator
3036 3036
     private static $operatorAssociativity = [
3037
-        '^' => 0,                                                            //    Exponentiation
3038
-        '*' => 0, '/' => 0,                                                 //    Multiplication and Division
3039
-        '+' => 0, '-' => 0,                                                    //    Addition and Subtraction
3040
-        '&' => 0,                                                            //    Concatenation
3041
-        '|' => 0, ':' => 0,                                                    //    Intersect and Range
3042
-        '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0,        //    Comparison
3037
+        '^' => 0, //    Exponentiation
3038
+        '*' => 0, '/' => 0, //    Multiplication and Division
3039
+        '+' => 0, '-' => 0, //    Addition and Subtraction
3040
+        '&' => 0, //    Concatenation
3041
+        '|' => 0, ':' => 0, //    Intersect and Range
3042
+        '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0, //    Comparison
3043 3043
     ];
3044 3044
 
3045 3045
     //    Comparison (Boolean) Operators
@@ -3050,15 +3050,15 @@  discard block
 block discarded – undo
3050 3050
     //    This list includes all valid operators, whether binary (including boolean) or unary (such as %)
3051 3051
     //    Array key is the operator, the value is its precedence
3052 3052
     private static $operatorPrecedence = [
3053
-        ':' => 8,                                                                //    Range
3054
-        '|' => 7,                                                                //    Intersect
3055
-        '~' => 6,                                                                //    Negation
3056
-        '%' => 5,                                                                //    Percentage
3057
-        '^' => 4,                                                                //    Exponentiation
3058
-        '*' => 3, '/' => 3,                                                     //    Multiplication and Division
3059
-        '+' => 2, '-' => 2,                                                        //    Addition and Subtraction
3060
-        '&' => 1,                                                                //    Concatenation
3061
-        '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0,            //    Comparison
3053
+        ':' => 8, //    Range
3054
+        '|' => 7, //    Intersect
3055
+        '~' => 6, //    Negation
3056
+        '%' => 5, //    Percentage
3057
+        '^' => 4, //    Exponentiation
3058
+        '*' => 3, '/' => 3, //    Multiplication and Division
3059
+        '+' => 2, '-' => 2, //    Addition and Subtraction
3060
+        '&' => 1, //    Concatenation
3061
+        '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0, //    Comparison
3062 3062
     ];
3063 3063
 
3064 3064
     // Convert infix to postfix notation
@@ -3085,9 +3085,9 @@  discard block
 block discarded – undo
3085 3085
         $index = 0;
3086 3086
         $stack = new Calculation\Token\Stack();
3087 3087
         $output = [];
3088
-        $expectingOperator = false;                    //    We use this test in syntax-checking the expression to determine when a
3088
+        $expectingOperator = false; //    We use this test in syntax-checking the expression to determine when a
3089 3089
                                                     //        - is a negation or + is a positive operator rather than an operation
3090
-        $expectingOperand = false;                    //    We use this test in syntax-checking the expression to determine whether an operand
3090
+        $expectingOperand = false; //    We use this test in syntax-checking the expression to determine whether an operand
3091 3091
                                                     //        should be null in a function call
3092 3092
         //    The guts of the lexical parser
3093 3093
         //    Loop through the formula extracting each operator and operand in turn
@@ -3107,26 +3107,26 @@  discard block
 block discarded – undo
3107 3107
 
3108 3108
             if ($opCharacter == '-' && !$expectingOperator) {                //    Is it a negation instead of a minus?
3109 3109
 //echo 'Element is a Negation operator', PHP_EOL;
3110
-                $stack->push('Unary Operator', '~');                            //    Put a negation on the stack
3111
-                ++$index;                                                    //        and drop the negation symbol
3110
+                $stack->push('Unary Operator', '~'); //    Put a negation on the stack
3111
+                ++$index; //        and drop the negation symbol
3112 3112
             } elseif ($opCharacter == '%' && $expectingOperator) {
3113 3113
                 //echo 'Element is a Percentage operator', PHP_EOL;
3114
-                $stack->push('Unary Operator', '%');                            //    Put a percentage on the stack
3114
+                $stack->push('Unary Operator', '%'); //    Put a percentage on the stack
3115 3115
                 ++$index;
3116 3116
             } elseif ($opCharacter == '+' && !$expectingOperator) {            //    Positive (unary plus rather than binary operator plus) can be discarded?
3117 3117
 //echo 'Element is a Positive number, not Plus operator', PHP_EOL;
3118
-                ++$index;                                                    //    Drop the redundant plus symbol
3118
+                ++$index; //    Drop the redundant plus symbol
3119 3119
             } elseif ((($opCharacter == '~') || ($opCharacter == '|')) && (!$isOperandOrFunction)) {    //    We have to explicitly deny a tilde or pipe, because they are legal
3120
-                return $this->raiseFormulaError("Formula Error: Illegal character '~'");                //        on the stack but not in the input expression
3120
+                return $this->raiseFormulaError("Formula Error: Illegal character '~'"); //        on the stack but not in the input expression
3121 3121
             } elseif ((isset(self::$operators[$opCharacter]) or $isOperandOrFunction) && $expectingOperator) {    //    Are we putting an operator on the stack?
3122 3122
 //echo 'Element with value '.$opCharacter.' is an Operator', PHP_EOL;
3123 3123
                 while ($stack->count() > 0 &&
3124 3124
                     ($o2 = $stack->last()) &&
3125 3125
                     isset(self::$operators[$o2['value']]) &&
3126 3126
                     @(self::$operatorAssociativity[$opCharacter] ? self::$operatorPrecedence[$opCharacter] < self::$operatorPrecedence[$o2['value']] : self::$operatorPrecedence[$opCharacter] <= self::$operatorPrecedence[$o2['value']])) {
3127
-                    $output[] = $stack->pop();                                //    Swap operands and higher precedence operators from the stack to the output
3127
+                    $output[] = $stack->pop(); //    Swap operands and higher precedence operators from the stack to the output
3128 3128
                 }
3129
-                $stack->push('Binary Operator', $opCharacter);    //    Finally put our current operator onto the stack
3129
+                $stack->push('Binary Operator', $opCharacter); //    Finally put our current operator onto the stack
3130 3130
                 ++$index;
3131 3131
                 $expectingOperator = false;
3132 3132
             } elseif ($opCharacter == ')' && $expectingOperator) {            //    Are we expecting to close a parenthesis?
@@ -3141,10 +3141,10 @@  discard block
 block discarded – undo
3141 3141
                 }
3142 3142
                 $d = $stack->last(2);
3143 3143
                 if (preg_match('/^' . self::CALCULATION_REGEXP_FUNCTION . '$/i', $d['value'], $matches)) {    //    Did this parenthesis just close a function?
3144
-                    $functionName = $matches[1];                                        //    Get the function name
3144
+                    $functionName = $matches[1]; //    Get the function name
3145 3145
 //echo 'Closed Function is '.$functionName, PHP_EOL;
3146 3146
                     $d = $stack->pop();
3147
-                    $argumentCount = $d['value'];        //    See how many arguments there were (argument count is the next value stored on the stack)
3147
+                    $argumentCount = $d['value']; //    See how many arguments there were (argument count is the next value stored on the stack)
3148 3148
 //if ($argumentCount == 0) {
3149 3149
 //    echo 'With no arguments', PHP_EOL;
3150 3150
 //} elseif ($argumentCount == 1) {
@@ -3152,8 +3152,8 @@  discard block
 block discarded – undo
3152 3152
 //} else {
3153 3153
 //    echo 'With '.$argumentCount.' arguments', PHP_EOL;
3154 3154
 //}
3155
-                    $output[] = $d;                        //    Dump the argument count on the output
3156
-                    $output[] = $stack->pop();            //    Pop the function and push onto the output
3155
+                    $output[] = $d; //    Dump the argument count on the output
3156
+                    $output[] = $stack->pop(); //    Pop the function and push onto the output
3157 3157
                     if (isset(self::$controlFunctions[$functionName])) {
3158 3158
                         //echo 'Built-in function '.$functionName, PHP_EOL;
3159 3159
                         $expectedArgumentCount = self::$controlFunctions[$functionName]['argumentCount'];
@@ -3217,7 +3217,7 @@  discard block
 block discarded – undo
3217 3217
                     if ($o2 === null) {
3218 3218
                         return $this->raiseFormulaError('Formula Error: Unexpected ,');
3219 3219
                     } else {
3220
-                        $output[] = $o2;    // pop the argument expression stuff and push onto the output
3220
+                        $output[] = $o2; // pop the argument expression stuff and push onto the output
3221 3221
                     }
3222 3222
                 }
3223 3223
                 //    If we've a comma when we're expecting an operand, then what we actually have is a null operand;
@@ -3231,8 +3231,8 @@  discard block
 block discarded – undo
3231 3231
                     return $this->raiseFormulaError('Formula Error: Unexpected ,');
3232 3232
                 }
3233 3233
                 $d = $stack->pop();
3234
-                $stack->push($d['type'], ++$d['value'], $d['reference']);    // increment the argument count
3235
-                $stack->push('Brace', '(');    // put the ( back on, we'll need to pop back to it again
3234
+                $stack->push($d['type'], ++$d['value'], $d['reference']); // increment the argument count
3235
+                $stack->push('Brace', '('); // put the ( back on, we'll need to pop back to it again
3236 3236
                 $expectingOperator = false;
3237 3237
                 $expectingOperand = true;
3238 3238
                 ++$index;
@@ -3311,13 +3311,13 @@  discard block
 block discarded – undo
3311 3311
                         if ((is_integer($startRowColRef)) && (ctype_digit($val)) &&
3312 3312
                             ($startRowColRef <= 1048576) && ($val <= 1048576)) {
3313 3313
                             //    Row range
3314
-                            $endRowColRef = ($pCellParent !== null) ? $pCellParent->getHighestColumn() : 'XFD';    //    Max 16,384 columns for Excel2007
3314
+                            $endRowColRef = ($pCellParent !== null) ? $pCellParent->getHighestColumn() : 'XFD'; //    Max 16,384 columns for Excel2007
3315 3315
                             $output[count($output) - 1]['value'] = $rangeWS1 . 'A' . $startRowColRef;
3316 3316
                             $val = $rangeWS2 . $endRowColRef . $val;
3317 3317
                         } elseif ((ctype_alpha($startRowColRef)) && (ctype_alpha($val)) &&
3318 3318
                             (strlen($startRowColRef) <= 3) && (strlen($val) <= 3)) {
3319 3319
                             //    Column range
3320
-                            $endRowColRef = ($pCellParent !== null) ? $pCellParent->getHighestRow() : 1048576;        //    Max 1,048,576 rows for Excel2007
3320
+                            $endRowColRef = ($pCellParent !== null) ? $pCellParent->getHighestRow() : 1048576; //    Max 1,048,576 rows for Excel2007
3321 3321
                             $output[count($output) - 1]['value'] = $rangeWS1 . strtoupper($startRowColRef) . '1';
3322 3322
                             $val = $rangeWS2 . $val . $endRowColRef;
3323 3323
                         }
@@ -3395,9 +3395,9 @@  discard block
 block discarded – undo
3395 3395
                         ($o2 = $stack->last()) &&
3396 3396
                         isset(self::$operators[$o2['value']]) &&
3397 3397
                         @(self::$operatorAssociativity[$opCharacter] ? self::$operatorPrecedence[$opCharacter] < self::$operatorPrecedence[$o2['value']] : self::$operatorPrecedence[$opCharacter] <= self::$operatorPrecedence[$o2['value']])) {
3398
-                        $output[] = $stack->pop();                                //    Swap operands and higher precedence operators from the stack to the output
3398
+                        $output[] = $stack->pop(); //    Swap operands and higher precedence operators from the stack to the output
3399 3399
                     }
3400
-                    $stack->push('Binary Operator', '|');    //    Put an Intersect Operator on the stack
3400
+                    $stack->push('Binary Operator', '|'); //    Put an Intersect Operator on the stack
3401 3401
                     $expectingOperator = false;
3402 3402
                 }
3403 3403
             }
@@ -3405,7 +3405,7 @@  discard block
 block discarded – undo
3405 3405
 
3406 3406
         while (($op = $stack->pop()) !== null) {    // pop everything off the stack and push onto output
3407 3407
             if ((is_array($op) && $op['value'] == '(') || ($op === '(')) {
3408
-                return $this->raiseFormulaError("Formula Error: Expecting ')'");    // if there are any opening braces on the stack, then braces were unbalanced
3408
+                return $this->raiseFormulaError("Formula Error: Expecting ')'"); // if there are any opening braces on the stack, then braces were unbalanced
3409 3409
             }
3410 3410
             $output[] = $op;
3411 3411
         }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Engineering.php 1 patch
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1826,7 +1826,7 @@  discard block
 block discarded – undo
1826 1826
      * @access    public
1827 1827
      * @category Engineering Functions
1828 1828
      * @param    string $complexNumber The complex number for which you want the real coefficient.
1829
-     * @return    float
1829
+     * @return    string
1830 1830
      */
1831 1831
     public static function IMREAL($complexNumber)
1832 1832
     {
@@ -2260,7 +2260,6 @@  discard block
 block discarded – undo
2260 2260
      * Excel Function:
2261 2261
      *        IMSUM(complexNumber[,complexNumber[,...]])
2262 2262
      *
2263
-     * @param    string $complexNumber,... Series of complex numbers to add
2264 2263
      * @return    string
2265 2264
      */
2266 2265
     public static function IMSUM()
@@ -2299,7 +2298,6 @@  discard block
 block discarded – undo
2299 2298
      * Excel Function:
2300 2299
      *        IMPRODUCT(complexNumber[,complexNumber[,...]])
2301 2300
      *
2302
-     * @param    string $complexNumber,... Series of complex numbers to multiply
2303 2301
      * @return    string
2304 2302
      */
2305 2303
     public static function IMPRODUCT()
@@ -2342,7 +2340,7 @@  discard block
 block discarded – undo
2342 2340
      *        DELTA(a[,b])
2343 2341
      *
2344 2342
      * @param    float $a The first number.
2345
-     * @param    float $b The second number. If omitted, b is assumed to be zero.
2343
+     * @param    integer $b The second number. If omitted, b is assumed to be zero.
2346 2344
      * @return    int
2347 2345
      */
2348 2346
     public static function DELTA($a, $b = 0)
@@ -2365,7 +2363,7 @@  discard block
 block discarded – undo
2365 2363
      *    functions you calculate the count of values that exceed a threshold.
2366 2364
      *
2367 2365
      * @param    float $number The value to test against step.
2368
-     * @param    float $step The threshold value.
2366
+     * @param    integer $step The threshold value.
2369 2367
      *                                    If you omit a value for step, GESTEP uses zero.
2370 2368
      * @return    int
2371 2369
      */
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/Financial.php 2 patches
Doc Comments   +28 added lines, -17 removed lines patch added patch discarded remove patch
@@ -63,6 +63,10 @@  discard block
 block discarded – undo
63 63
     }
64 64
 
65 65
 
66
+    /**
67
+     * @param integer $frequency
68
+     * @param boolean $next
69
+     */
66 70
     private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next)
67 71
     {
68 72
         $months = 12 / $frequency;
@@ -85,6 +89,9 @@  discard block
 block discarded – undo
85 89
     }
86 90
 
87 91
 
92
+    /**
93
+     * @param integer $frequency
94
+     */
88 95
     private static function isValidFrequency($frequency)
89 96
     {
90 97
         if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) {
@@ -162,7 +169,7 @@  discard block
 block discarded – undo
162 169
      *                                    The security settlement date is the date after the issue date
163 170
      *                                    when the security is traded to the buyer.
164 171
      * @param    float    $rate            The security's annual coupon rate.
165
-     * @param    float    $par            The security's par value.
172
+     * @param    integer    $par            The security's par value.
166 173
      *                                    If you omit par, ACCRINT uses $1,000.
167 174
      * @param    integer    $frequency        the number of coupon payments per year.
168 175
      *                                    Valid frequency values are:
@@ -432,6 +439,7 @@  discard block
 block discarded – undo
432 439
      *                                        2                Actual/360
433 440
      *                                        3                Actual/365
434 441
      *                                        4                European 30/360
442
+     * @param integer $frequency
435 443
      * @return    float
436 444
      */
437 445
     public static function COUPDAYBS($settlement, $maturity, $frequency, $basis = 0)
@@ -491,6 +499,7 @@  discard block
 block discarded – undo
491 499
      *                                        2                Actual/360
492 500
      *                                        3                Actual/365
493 501
      *                                        4                European 30/360
502
+     * @param integer $frequency
494 503
      * @return    float
495 504
      */
496 505
     public static function COUPDAYS($settlement, $maturity, $frequency, $basis = 0)
@@ -564,6 +573,7 @@  discard block
 block discarded – undo
564 573
      *                                        2                Actual/360
565 574
      *                                        3                Actual/365
566 575
      *                                        4                European 30/360
576
+     * @param integer $frequency
567 577
      * @return    float
568 578
      */
569 579
     public static function COUPDAYSNC($settlement, $maturity, $frequency, $basis = 0)
@@ -681,6 +691,7 @@  discard block
 block discarded – undo
681 691
      *                                        2                Actual/360
682 692
      *                                        3                Actual/365
683 693
      *                                        4                European 30/360
694
+     * @param integer $frequency
684 695
      * @return    integer
685 696
      */
686 697
     public static function COUPNUM($settlement, $maturity, $frequency, $basis = 0)
@@ -1144,7 +1155,7 @@  discard block
 block discarded – undo
1144 1155
      *
1145 1156
      * @access    public
1146 1157
      * @category Financial Functions
1147
-     * @param    float    $nominal_rate        Nominal interest rate
1158
+     * @param    integer    $nominal_rate        Nominal interest rate
1148 1159
      * @param    integer    $npery                Number of compounding payments per year
1149 1160
      * @return    float
1150 1161
      */
@@ -1172,12 +1183,12 @@  discard block
 block discarded – undo
1172 1183
      *
1173 1184
      * @access    public
1174 1185
      * @category Financial Functions
1175
-     * @param    float    $rate    The interest rate per period
1186
+     * @param    integer    $rate    The interest rate per period
1176 1187
      * @param    int        $nper    Total number of payment periods in an annuity
1177
-     * @param    float    $pmt    The payment made each period: it cannot change over the
1188
+     * @param    integer    $pmt    The payment made each period: it cannot change over the
1178 1189
      *                            life of the annuity. Typically, pmt contains principal
1179 1190
      *                            and interest but no other fees or taxes.
1180
-     * @param    float    $pv        Present Value, or the lump-sum amount that a series of
1191
+     * @param    integer    $pv        Present Value, or the lump-sum amount that a series of
1181 1192
      *                            future payments is worth right now.
1182 1193
      * @param    integer    $type    A number 0 or 1 and indicates when payments are due:
1183 1194
      *                                0 or omitted    At the end of the period.
@@ -1293,7 +1304,7 @@  discard block
 block discarded – undo
1293 1304
      * @param    int        $per    Period for which we want to find the interest
1294 1305
      * @param    int        $nper    Number of periods
1295 1306
      * @param    float    $pv        Present Value
1296
-     * @param    float    $fv        Future Value
1307
+     * @param    integer    $fv        Future Value
1297 1308
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1298 1309
      * @return    float
1299 1310
      */
@@ -1485,7 +1496,7 @@  discard block
 block discarded – undo
1485 1496
      *
1486 1497
      * Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
1487 1498
      *
1488
-     * @param    float    $effect_rate    Effective interest rate
1499
+     * @param    integer    $effect_rate    Effective interest rate
1489 1500
      * @param    int        $npery            Number of compounding payments per year
1490 1501
      * @return    float
1491 1502
      */
@@ -1509,10 +1520,10 @@  discard block
 block discarded – undo
1509 1520
      *
1510 1521
      * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate.
1511 1522
      *
1512
-     * @param    float    $rate    Interest rate per period
1523
+     * @param    integer    $rate    Interest rate per period
1513 1524
      * @param    int        $pmt    Periodic payment (annuity)
1514
-     * @param    float    $pv        Present Value
1515
-     * @param    float    $fv        Future Value
1525
+     * @param    integer    $pv        Present Value
1526
+     * @param    integer    $fv        Future Value
1516 1527
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1517 1528
      * @return    float
1518 1529
      */
@@ -1575,10 +1586,10 @@  discard block
 block discarded – undo
1575 1586
      *
1576 1587
      * Returns the constant payment (annuity) for a cash flow with a constant interest rate.
1577 1588
      *
1578
-     * @param    float    $rate    Interest rate per period
1589
+     * @param    integer    $rate    Interest rate per period
1579 1590
      * @param    int        $nper    Number of periods
1580
-     * @param    float    $pv        Present Value
1581
-     * @param    float    $fv        Future Value
1591
+     * @param    integer    $pv        Present Value
1592
+     * @param    integer    $fv        Future Value
1582 1593
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1583 1594
      * @return    float
1584 1595
      */
@@ -1612,7 +1623,7 @@  discard block
 block discarded – undo
1612 1623
      * @param    int        $per    Period for which we want to find the interest
1613 1624
      * @param    int        $nper    Number of periods
1614 1625
      * @param    float    $pv        Present Value
1615
-     * @param    float    $fv        Future Value
1626
+     * @param    integer    $fv        Future Value
1616 1627
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1617 1628
      * @return    float
1618 1629
      */
@@ -1795,10 +1806,10 @@  discard block
 block discarded – undo
1795 1806
      *
1796 1807
      * Returns the Present Value of a cash flow with constant payments and interest rate (annuities).
1797 1808
      *
1798
-     * @param    float    $rate    Interest rate per period
1809
+     * @param    integer    $rate    Interest rate per period
1799 1810
      * @param    int        $nper    Number of periods
1800
-     * @param    float    $pmt    Periodic payment (annuity)
1801
-     * @param    float    $fv        Future Value
1811
+     * @param    integer    $pmt    Periodic payment (annuity)
1812
+     * @param    integer    $fv        Future Value
1802 1813
      * @param    int        $type    Payment type: 0 = at the end of each period, 1 = at the beginning of each period
1803 1814
      * @return    float
1804 1815
      */
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -180,9 +180,9 @@  discard block
 block discarded – undo
180 180
         $firstinterest = Functions::flattenSingleValue($firstinterest);
181 181
         $settlement = Functions::flattenSingleValue($settlement);
182 182
         $rate = Functions::flattenSingleValue($rate);
183
-        $par = (is_null($par))        ? 1000 :    Functions::flattenSingleValue($par);
184
-        $frequency = (is_null($frequency))    ? 1    :         Functions::flattenSingleValue($frequency);
185
-        $basis = (is_null($basis))        ? 0    :        Functions::flattenSingleValue($basis);
183
+        $par = (is_null($par)) ? 1000 : Functions::flattenSingleValue($par);
184
+        $frequency = (is_null($frequency)) ? 1 : Functions::flattenSingleValue($frequency);
185
+        $basis = (is_null($basis)) ? 0 : Functions::flattenSingleValue($basis);
186 186
 
187 187
         //    Validate
188 188
         if ((is_numeric($rate)) && (is_numeric($par))) {
@@ -230,8 +230,8 @@  discard block
 block discarded – undo
230 230
         $issue = Functions::flattenSingleValue($issue);
231 231
         $settlement = Functions::flattenSingleValue($settlement);
232 232
         $rate = Functions::flattenSingleValue($rate);
233
-        $par = (is_null($par))    ? 1000 :    Functions::flattenSingleValue($par);
234
-        $basis = (is_null($basis))    ? 0 :        Functions::flattenSingleValue($basis);
233
+        $par = (is_null($par)) ? 1000 : Functions::flattenSingleValue($par);
234
+        $basis = (is_null($basis)) ? 0 : Functions::flattenSingleValue($basis);
235 235
 
236 236
         //    Validate
237 237
         if ((is_numeric($rate)) && (is_numeric($par))) {
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         $salvage = Functions::flattenSingleValue($salvage);
291 291
         $period = floor(Functions::flattenSingleValue($period));
292 292
         $rate = Functions::flattenSingleValue($rate);
293
-        $basis = (is_null($basis))    ? 0 :    (int) Functions::flattenSingleValue($basis);
293
+        $basis = (is_null($basis)) ? 0 : (int) Functions::flattenSingleValue($basis);
294 294
 
295 295
         //    The depreciation coefficients are:
296 296
         //    Life of assets (1/rate)        Depreciation coefficient
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
         $settlement = Functions::flattenSingleValue($settlement);
618 618
         $maturity = Functions::flattenSingleValue($maturity);
619 619
         $frequency = (int) Functions::flattenSingleValue($frequency);
620
-        $basis = (is_null($basis))    ? 0 :    (int) Functions::flattenSingleValue($basis);
620
+        $basis = (is_null($basis)) ? 0 : (int) Functions::flattenSingleValue($basis);
621 621
 
622 622
         if (is_string($settlement = DateTime::getDateValue($settlement))) {
623 623
             return Functions::VALUE();
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
         $settlement = Functions::flattenSingleValue($settlement);
673 673
         $maturity = Functions::flattenSingleValue($maturity);
674 674
         $frequency = (int) Functions::flattenSingleValue($frequency);
675
-        $basis = (is_null($basis))    ? 0 :    (int) Functions::flattenSingleValue($basis);
675
+        $basis = (is_null($basis)) ? 0 : (int) Functions::flattenSingleValue($basis);
676 676
 
677 677
         if (is_string($settlement = DateTime::getDateValue($settlement))) {
678 678
             return Functions::VALUE();
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
         $settlement = Functions::flattenSingleValue($settlement);
744 744
         $maturity = Functions::flattenSingleValue($maturity);
745 745
         $frequency = (int) Functions::flattenSingleValue($frequency);
746
-        $basis = (is_null($basis))    ? 0 :    (int) Functions::flattenSingleValue($basis);
746
+        $basis = (is_null($basis)) ? 0 : (int) Functions::flattenSingleValue($basis);
747 747
 
748 748
         if (is_string($settlement = DateTime::getDateValue($settlement))) {
749 749
             return Functions::VALUE();
@@ -1619,7 +1619,7 @@  discard block
 block discarded – undo
1619 1619
         $yield = (float) Functions::flattenSingleValue($yield);
1620 1620
         $redemption = (float) Functions::flattenSingleValue($redemption);
1621 1621
         $frequency = (int) Functions::flattenSingleValue($frequency);
1622
-        $basis = (is_null($basis))    ? 0 :    (int) Functions::flattenSingleValue($basis);
1622
+        $basis = (is_null($basis)) ? 0 : (int) Functions::flattenSingleValue($basis);
1623 1623
 
1624 1624
         if (is_string($settlement = DateTime::getDateValue($settlement))) {
1625 1625
             return Functions::VALUE();
@@ -1828,9 +1828,9 @@  discard block
 block discarded – undo
1828 1828
         $nper = (int) Functions::flattenSingleValue($nper);
1829 1829
         $pmt = Functions::flattenSingleValue($pmt);
1830 1830
         $pv = Functions::flattenSingleValue($pv);
1831
-        $fv = (is_null($fv))    ? 0.0    :    Functions::flattenSingleValue($fv);
1832
-        $type = (is_null($type))    ? 0        :    (int) Functions::flattenSingleValue($type);
1833
-        $guess = (is_null($guess))    ? 0.1    :    Functions::flattenSingleValue($guess);
1831
+        $fv = (is_null($fv)) ? 0.0 : Functions::flattenSingleValue($fv);
1832
+        $type = (is_null($type)) ? 0 : (int) Functions::flattenSingleValue($type);
1833
+        $guess = (is_null($guess)) ? 0.1 : Functions::flattenSingleValue($guess);
1834 1834
 
1835 1835
         $rate = $guess;
1836 1836
         if (abs($rate) < FINANCIAL_PRECISION) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/FormulaParser.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * Get Token
117 117
      *
118 118
      * @param     int        $pId    Token id
119
-     * @return    string
119
+     * @return    FormulaToken
120 120
      * @throws  Exception
121 121
      */
122 122
     public function getToken($pId = 0)
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * Get Token count
133 133
      *
134
-     * @return string
134
+     * @return integer
135 135
      */
136 136
     public function getTokenCount()
137 137
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
                     (($previousToken->getTokenType() == FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == FormulaToken::TOKEN_SUBTYPE_STOP)) ||
498 498
                     (($previousToken->getTokenType() == FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == FormulaToken::TOKEN_SUBTYPE_STOP)) ||
499 499
                     ($previousToken->getTokenType() == FormulaToken::TOKEN_TYPE_OPERAND)
500
-                  )) {
500
+                    )) {
501 501
                 continue;
502 502
             }
503 503
 
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
                     (($nextToken->getTokenType() == FormulaToken::TOKEN_TYPE_FUNCTION) && ($nextToken->getTokenSubType() == FormulaToken::TOKEN_SUBTYPE_START)) ||
510 510
                     (($nextToken->getTokenType() == FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($nextToken->getTokenSubType() == FormulaToken::TOKEN_SUBTYPE_START)) ||
511 511
                     ($nextToken->getTokenType() == FormulaToken::TOKEN_TYPE_OPERAND)
512
-                  )) {
512
+                    )) {
513 513
                 continue;
514 514
             }
515 515
 
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/LookupRef.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @param    row                Row number to use in the cell reference
41 41
      * @param    column            Column number to use in the cell reference
42
-     * @param    relativity        Flag indicating the type of reference to return
42
+     * @param    relativity        integer indicating the type of reference to return
43 43
      *                                1 or omitted    Absolute
44 44
      *                                2                Absolute row; relative column
45 45
      *                                3                Relative row; absolute column
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      *
353 353
      * @param    cellAddress        The reference from which you want to base the offset. Reference must refer to a cell or
354 354
      *                                range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value.
355
-     * @param    rows            The number of rows, up or down, that you want the upper-left cell to refer to.
355
+     * @param    rows            integer number of rows, up or down, that you want the upper-left cell to refer to.
356 356
      *                                Using 5 as the rows argument specifies that the upper-left cell in the reference is
357 357
      *                                five rows below reference. Rows can be positive (which means below the starting reference)
358 358
      *                                or negative (which means above the starting reference).
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      *
491 491
      * @param    lookup_value    The value that you want to match in lookup_array
492 492
      * @param    lookup_array    The range of cells being searched
493
-     * @param    match_type        The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
493
+     * @param    match_type        integer number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered.
494 494
      * @return    integer            The relative position of the found item
495 495
      */
496 496
     public static function MATCH($lookup_value, $lookup_array, $match_type = 1)
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
      * The VLOOKUP function searches for value in the left-most column of lookup_array and returns the value in the same row based on the index_number.
681 681
      * @param    lookup_value    The value that you want to match in lookup_array
682 682
      * @param    lookup_array    The range of cells being searched
683
-     * @param    index_number    The column number in table_array from which the matching value must be returned. The first column is 1.
683
+     * @param    index_number    integer column number in table_array from which the matching value must be returned. The first column is 1.
684 684
      * @param    not_exact_match    Determines if you are looking for an exact match based on lookup_value.
685 685
      * @return    mixed            The value of the found cell
686 686
      */
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
         $args = func_get_args();
261 261
         $pCell = array_pop($args);
262 262
 
263
-        $linkURL = (is_null($linkURL))     ? '' : Functions::flattenSingleValue($linkURL);
263
+        $linkURL = (is_null($linkURL)) ? '' : Functions::flattenSingleValue($linkURL);
264 264
         $displayName = (is_null($displayName)) ? '' : Functions::flattenSingleValue($displayName);
265 265
 
266 266
         if ((!is_object($pCell)) || (trim($linkURL) == '')) {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Calculation/MathTrig.php 2 patches
Doc Comments   +11 added lines, -20 removed lines patch added patch discarded remove patch
@@ -55,6 +55,10 @@  discard block
 block discarded – undo
55 55
     }
56 56
 
57 57
 
58
+    /**
59
+     * @param integer $num
60
+     * @param integer $n
61
+     */
58 62
     private static function romanCut($num, $n)
59 63
     {
60 64
         return ($num - ($num % $n ) ) / $n;
@@ -337,7 +341,6 @@  discard block
 block discarded – undo
337 341
      *
338 342
      * @access    public
339 343
      * @category Mathematical and Trigonometric Functions
340
-     * @param    mixed    $arg,...        Data values
341 344
      * @return    integer                    Greatest Common Divisor
342 345
      */
343 346
     public static function GCD()
@@ -444,7 +447,6 @@  discard block
 block discarded – undo
444 447
      *
445 448
      * @access    public
446 449
      * @category Mathematical and Trigonometric Functions
447
-     * @param    mixed    $arg,...        Data values
448 450
      * @return    int        Lowest Common Multiplier
449 451
      */
450 452
     public static function LCM()
@@ -495,7 +497,7 @@  discard block
 block discarded – undo
495 497
      * @access    public
496 498
      * @category Mathematical and Trigonometric Functions
497 499
      * @param    float    $number        The positive real number for which you want the logarithm
498
-     * @param    float    $base        The base of the logarithm. If base is omitted, it is assumed to be 10.
500
+     * @param    integer    $base        The base of the logarithm. If base is omitted, it is assumed to be 10.
499 501
      * @return    float
500 502
      */
501 503
     public static function logBase($number = null, $base = 10)
@@ -805,8 +807,8 @@  discard block
 block discarded – undo
805 807
      *
806 808
      * Computes x raised to the power y.
807 809
      *
808
-     * @param    float        $x
809
-     * @param    float        $y
810
+     * @param    integer        $x
811
+     * @param    integer        $y
810 812
      * @return    float
811 813
      */
812 814
     public static function POWER($x = 0, $y = 2)
@@ -837,7 +839,6 @@  discard block
 block discarded – undo
837 839
      *
838 840
      * @access    public
839 841
      * @category Mathematical and Trigonometric Functions
840
-     * @param    mixed        $arg,...        Data values
841 842
      * @return    float
842 843
      */
843 844
     public static function PRODUCT()
@@ -876,8 +877,7 @@  discard block
 block discarded – undo
876 877
      *
877 878
      * @access    public
878 879
      * @category Mathematical and Trigonometric Functions
879
-     * @param    mixed        $arg,...        Data values
880
-     * @return    float
880
+     * @return    integer
881 881
      */
882 882
     public static function QUOTIENT()
883 883
     {
@@ -1015,9 +1015,6 @@  discard block
 block discarded – undo
1015 1015
      *
1016 1016
      * Returns the sum of a power series
1017 1017
      *
1018
-     * @param    float            $x    Input value to the power series
1019
-     * @param    float            $n    Initial power to which you want to raise $x
1020
-     * @param    float            $m    Step by which to increase $n for each term in the series
1021 1018
      * @param    array of mixed        Data Series
1022 1019
      * @return    float
1023 1020
      */
@@ -1154,7 +1151,6 @@  discard block
 block discarded – undo
1154 1151
      *
1155 1152
      * @access    public
1156 1153
      * @category Mathematical and Trigonometric Functions
1157
-     * @param    mixed        $arg,...        Data values
1158 1154
      * @return    float
1159 1155
      */
1160 1156
     public static function SUM()
@@ -1183,9 +1179,8 @@  discard block
 block discarded – undo
1183 1179
      *
1184 1180
      * @access    public
1185 1181
      * @category Mathematical and Trigonometric Functions
1186
-     * @param    mixed        $arg,...        Data values
1187 1182
      * @param    string        $condition        The criteria that defines which cells will be summed.
1188
-     * @return    float
1183
+     * @return    integer
1189 1184
      */
1190 1185
     public static function SUMIF($aArgs, $condition, $sumArgs = array())
1191 1186
     {
@@ -1224,9 +1219,7 @@  discard block
 block discarded – undo
1224 1219
      *
1225 1220
      *    @access    public
1226 1221
      *    @category Mathematical and Trigonometric Functions
1227
-     *    @param    mixed        $arg,...        Data values
1228
-     *    @param    string        $condition        The criteria that defines which cells will be summed.
1229
-     *    @return    float
1222
+     * @return integer
1230 1223
      */
1231 1224
     public static function SUMIFS()
1232 1225
     {
@@ -1271,7 +1264,6 @@  discard block
 block discarded – undo
1271 1264
      *
1272 1265
      * @access    public
1273 1266
      * @category Mathematical and Trigonometric Functions
1274
-     * @param    mixed        $arg,...        Data values
1275 1267
      * @return    float
1276 1268
      */
1277 1269
     public static function SUMPRODUCT()
@@ -1316,7 +1308,6 @@  discard block
 block discarded – undo
1316 1308
      *
1317 1309
      * @access    public
1318 1310
      * @category Mathematical and Trigonometric Functions
1319
-     * @param    mixed        $arg,...        Data values
1320 1311
      * @return    float
1321 1312
      */
1322 1313
     public static function SUMSQ()
@@ -1415,7 +1406,7 @@  discard block
 block discarded – undo
1415 1406
      *
1416 1407
      * Truncates value to the number of fractional digits by number_digits.
1417 1408
      *
1418
-     * @param    float        $value
1409
+     * @param    integer        $value
1419 1410
      * @param    int            $digits
1420 1411
      * @return    float        Truncated value
1421 1412
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -913,7 +913,7 @@
 block discarded – undo
913 913
     public static function ROMAN($aValue, $style = 0)
914 914
     {
915 915
         $aValue = Functions::flattenSingleValue($aValue);
916
-        $style = (is_null($style))    ? 0 :    (integer) Functions::flattenSingleValue($style);
916
+        $style = (is_null($style)) ? 0 : (integer) Functions::flattenSingleValue($style);
917 917
         if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) {
918 918
             return Functions::VALUE();
919 919
         }
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Axis.php 1 patch
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
     /**
333 333
      * Set Shadow Properties
334 334
      *
335
-     * @param int $shadow_presets
335
+     * @param int $sh_presets
336 336
      * @param string $sh_color_value
337 337
      * @param string $sh_color_type
338 338
      * @param string $sh_color_alpha
@@ -467,10 +467,6 @@  discard block
 block discarded – undo
467 467
     /**
468 468
      * Get Glow Property
469 469
      *
470
-     * @param float $size
471
-     * @param string $color_value
472
-     * @param int $color_alpha
473
-     * @param string $color_type
474 470
      */
475 471
     public function getShadowProperty($elements)
476 472
     {
Please login to merge, or discard this patch.
src/PhpSpreadsheet/Chart/Layout.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -176,6 +176,7 @@
 block discarded – undo
176 176
      * Set Layout Target
177 177
      *
178 178
      * @param Layout Target $value
179
+     * @param string $value
179 180
      * @return Layout
180 181
      */
181 182
     public function setLayoutTarget($value)
Please login to merge, or discard this patch.