Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasgeniar authored and actions-user committed Feb 1, 2021
1 parent 1a2c9a3 commit f65439e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
15 changes: 5 additions & 10 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

use Mattiasgeniar\Percentage\Percentage;

if (!function_exists("percentage_between"))
{
if (! function_exists("percentage_between")) {
/**
* @param float $a
* @param float $b
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion tests/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@ public function it_can_calculate_percentage_extension(): void
$result = percentage_extension(1, 1, 1);
self::assertNotNull($result);
}

}

0 comments on commit f65439e

Please sign in to comment.