Passed
Push — master ( 9d8cbf...595f13 )
by Бабичев
05:05 queued 10s
created
src/Simple/BrickMath.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function add($first, $second, ?int $scale = null): string
17 17
     {
18
-        return (string) BigDecimal::of($first)
18
+        return (string)BigDecimal::of($first)
19 19
             ->plus(BigDecimal::of($second))
20 20
             ->toScale($this->scale($scale), RoundingMode::DOWN);
21 21
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function sub($first, $second, ?int $scale = null): string
27 27
     {
28
-        return (string) BigDecimal::of($first)
28
+        return (string)BigDecimal::of($first)
29 29
             ->minus(BigDecimal::of($second))
30 30
             ->toScale($this->scale($scale), RoundingMode::DOWN);
31 31
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function div($first, $second, ?int $scale = null): string
37 37
     {
38
-        return (string) BigDecimal::of($first)
38
+        return (string)BigDecimal::of($first)
39 39
             ->dividedBy(BigDecimal::of($second), $this->scale($scale), RoundingMode::DOWN);
40 40
     }
41 41
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function mul($first, $second, ?int $scale = null): string
46 46
     {
47
-        return (string) BigDecimal::of($first)
47
+        return (string)BigDecimal::of($first)
48 48
             ->multipliedBy(BigDecimal::of($second))
49 49
             ->toScale($this->scale($scale), RoundingMode::DOWN);
50 50
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function pow($first, $second, ?int $scale = null): string
56 56
     {
57
-        return (string) BigDecimal::of($first)
57
+        return (string)BigDecimal::of($first)
58 58
             ->power($second)
59 59
             ->toScale($this->scale($scale), RoundingMode::DOWN);
60 60
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     public function abs($number): string
94 94
     {
95 95
         try {
96
-            return (string) BigDecimal::of($number)->abs();
96
+            return (string)BigDecimal::of($number)->abs();
97 97
         } catch (\Throwable $throwable) {
98 98
             return '0'; // fixme: 6.x
99 99
         }
Please login to merge, or discard this patch.