Skip to content

Commit 66183af

Browse files
authored
Fix bad paste
1 parent 2e23cc6 commit 66183af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/helpers.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function decimal($value, int $precision = Decimal::DEFAULT_PRECISION): Decimal
1717
}
1818
}
1919

20-
if (!function_exists("decimal")) {
20+
if (!function_exists("is_decimal")) {
2121
/**
2222
* @return bool TRUE if the given value is a decimal, FALSE otherwise.
2323
*/
@@ -27,7 +27,7 @@ function is_decimal($value): bool
2727
}
2828
}
2929

30-
if (!function_exists("decimal")) {
30+
if (!function_exists("decimal_sum")) {
3131
/**
3232
* @return \Decimal\Decimal The sum of all given values, calculated to $precision.
3333
*/
@@ -37,7 +37,7 @@ function decimal_sum($values, int $precision = Decimal::DEFAULT_PRECISION): Deci
3737
}
3838
}
3939

40-
if (!function_exists("decimal")) {
40+
if (!function_exists("decimal_avg")) {
4141
/**
4242
* @return \Decimal\Decimal The average of all given values, calculated to $precision.
4343
*/

0 commit comments

Comments
 (0)