Skip to content

Commit 14c7e04

Browse files
committed
ecs-fix
1 parent 526ab9d commit 14c7e04

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Internal/Service/MathService.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,38 +22,38 @@ public function add(float|int|string $first, float|int|string $second, ?int $sca
2222
return (string) BigDecimal::of($first)
2323
->plus(BigDecimal::of($second))
2424
->toScale($scale ?? $this->scale, RoundingMode::DOWN)
25-
;
25+
;
2626
}
2727

2828
public function sub(float|int|string $first, float|int|string $second, ?int $scale = null): string
2929
{
3030
return (string) BigDecimal::of($first)
3131
->minus(BigDecimal::of($second))
3232
->toScale($scale ?? $this->scale, RoundingMode::DOWN)
33-
;
33+
;
3434
}
3535

3636
public function div(float|int|string $first, float|int|string $second, ?int $scale = null): string
3737
{
3838
return (string) BigDecimal::of($first)
3939
->dividedBy(BigDecimal::of($second), $scale ?? $this->scale, RoundingMode::DOWN)
40-
;
40+
;
4141
}
4242

4343
public function mul(float|int|string $first, float|int|string $second, ?int $scale = null): string
4444
{
4545
return (string) BigDecimal::of($first)
4646
->multipliedBy(BigDecimal::of($second))
4747
->toScale($scale ?? $this->scale, RoundingMode::DOWN)
48-
;
48+
;
4949
}
5050

5151
public function pow(float|int|string $first, float|int|string $second, ?int $scale = null): string
5252
{
5353
return (string) BigDecimal::of($first)
5454
->power((int) $second)
5555
->toScale($scale ?? $this->scale, RoundingMode::DOWN)
56-
;
56+
;
5757
}
5858

5959
public function powTen(float|int|string $number): string
@@ -65,21 +65,21 @@ public function ceil(float|int|string $number): string
6565
{
6666
return (string) BigDecimal::of($number)
6767
->dividedBy(BigDecimal::one(), 0, RoundingMode::CEILING)
68-
;
68+
;
6969
}
7070

7171
public function floor(float|int|string $number): string
7272
{
7373
return (string) BigDecimal::of($number)
7474
->dividedBy(BigDecimal::one(), 0, RoundingMode::FLOOR)
75-
;
75+
;
7676
}
7777

7878
public function round(float|int|string $number, int $precision = 0): string
7979
{
8080
return (string) BigDecimal::of($number)
8181
->dividedBy(BigDecimal::one(), $precision, RoundingMode::HALF_UP)
82-
;
82+
;
8383
}
8484

8585
public function abs(float|int|string $number): string

0 commit comments

Comments
 (0)