Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/PhpSpreadsheet/Calculation/Calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class Calculation
],
'BASE' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'BASE'],
'functionCall' => [MathTrig\Base::class, 'funcBase'],
'argumentCount' => '2,3',
],
'BESSELI' => [
Expand Down Expand Up @@ -990,7 +990,7 @@ class Calculation
],
'FACT' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'FACT'],
'functionCall' => [MathTrig\Fact::class, 'funcFact'],
'argumentCount' => '1',
],
'FACTDOUBLE' => [
Expand Down Expand Up @@ -1536,7 +1536,7 @@ class Calculation
],
'LCM' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'LCM'],
'functionCall' => [MathTrig\Lcm::class, 'funcLcm'],
'argumentCount' => '1+',
],
'LEFT' => [
Expand Down Expand Up @@ -1636,7 +1636,7 @@ class Calculation
],
'MDETERM' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'MDETERM'],
'functionCall' => [MathTrig\MatrixFunctions::class, 'funcMDeterm'],
'argumentCount' => '1',
],
'MDURATION' => [
Expand Down Expand Up @@ -1686,7 +1686,7 @@ class Calculation
],
'MINVERSE' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'MINVERSE'],
'functionCall' => [MathTrig\MatrixFunctions::class, 'funcMinverse'],
'argumentCount' => '1',
],
'MIRR' => [
Expand All @@ -1696,7 +1696,7 @@ class Calculation
],
'MMULT' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'MMULT'],
'functionCall' => [MathTrig\MatrixFunctions::class, 'funcMMult'],
'argumentCount' => '2',
],
'MOD' => [
Expand Down Expand Up @@ -1731,7 +1731,7 @@ class Calculation
],
'MULTINOMIAL' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'MULTINOMIAL'],
'functionCall' => [MathTrig\Multinomial::class, 'funcMultinomial'],
'argumentCount' => '1+',
],
'MUNIT' => [
Expand Down Expand Up @@ -2003,7 +2003,7 @@ class Calculation
],
'PRODUCT' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'PRODUCT'],
'functionCall' => [MathTrig\Product::class, 'funcProduct'],
'argumentCount' => '1+',
],
'PROPER' => [
Expand Down Expand Up @@ -2033,7 +2033,7 @@ class Calculation
],
'QUOTIENT' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'QUOTIENT'],
'functionCall' => [MathTrig\Quotient::class, 'funcQuotient'],
'argumentCount' => '2',
],
'RADIANS' => [
Expand Down Expand Up @@ -2305,13 +2305,13 @@ class Calculation
],
'SUBTOTAL' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'SUBTOTAL'],
'functionCall' => [MathTrig\Subtotal::class, 'funcSubtotal'],
'argumentCount' => '2+',
'passCellReference' => true,
],
'SUM' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'SUM'],
'functionCall' => [MathTrig\Sum::class, 'funcSumNoStrings'],
'argumentCount' => '1+',
],
'SUMIF' => [
Expand All @@ -2326,7 +2326,7 @@ class Calculation
],
'SUMPRODUCT' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig::class, 'SUMPRODUCT'],
'functionCall' => [MathTrig\SumProduct::class, 'funcSumProduct'],
'argumentCount' => '1+',
],
'SUMSQ' => [
Expand Down
4 changes: 2 additions & 2 deletions src/PhpSpreadsheet/Calculation/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public static function DMIN($database, $field, $criteria)
* the column label in which you specify a condition for the
* column.
*
* @return float
* @return float|string
*/
public static function DPRODUCT($database, $field, $criteria)
{
Expand Down Expand Up @@ -349,7 +349,7 @@ public static function DSTDEVP($database, $field, $criteria)
* the column label in which you specify a condition for the
* column.
*
* @return float
* @return float|string
*/
public static function DSUM($database, $field, $criteria)
{
Expand Down
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Calculation/Database/DProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class DProduct extends DatabaseAbstract
* the column label in which you specify a condition for the
* column.
*
* @return float
* @return float|string
*/
public static function evaluate($database, $field, $criteria)
{
Expand Down
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Calculation/Database/DSum.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class DSum extends DatabaseAbstract
* the column label in which you specify a condition for the
* column.
*
* @return float
* @return float|string
*/
public static function evaluate($database, $field, $criteria)
{
Expand Down
Loading