diff --git a/src/Helpers.php b/src/Helpers.php index 4038b94..014899f 100644 --- a/src/Helpers.php +++ b/src/Helpers.php @@ -2,8 +2,7 @@ use Mattiasgeniar\Percentage\Percentage; -if (!function_exists("percentage_between")) -{ +if (! function_exists("percentage_between")) { /** * @param float $a * @param float $b @@ -15,8 +14,7 @@ function percentage_between(float $a, float $b): float } } -if (!function_exists("percentage_abs_between")) -{ +if (! function_exists("percentage_abs_between")) { /** * @param float $a * @param float $b @@ -28,8 +26,7 @@ function percentage_abs_between(float $a, float $b): float } } -if (!function_exists("percentage")) -{ +if (! function_exists("percentage")) { /** * @param float $a * @param float $b @@ -41,8 +38,7 @@ function percentage(float $a, float $b): float } } -if (!function_exists("percentage_of")) -{ +if (! function_exists("percentage_of")) { /** * @param float $percentage * @param float $number @@ -54,8 +50,7 @@ function percentage_of(float $percentage, float $number): float } } -if (!function_exists("percentage_extension")) -{ +if (! function_exists("percentage_extension")) { /** * @param float $percentage * @param float $a diff --git a/tests/HelpersTest.php b/tests/HelpersTest.php index 20c7c17..ecbf459 100644 --- a/tests/HelpersTest.php +++ b/tests/HelpersTest.php @@ -52,5 +52,4 @@ public function it_can_calculate_percentage_extension(): void $result = percentage_extension(1, 1, 1); self::assertNotNull($result); } - }