@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | final public function __toString(): string |
56 | 56 | { |
57 | - return (string) $this->__default; |
|
57 | + return (string)$this->__default; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -26,11 +26,11 @@ |
||
26 | 26 | public function test(): void |
27 | 27 | { |
28 | 28 | $instance = new DuckInt(); |
29 | - $this->assertSame(0, (int) (string) $instance); |
|
29 | + $this->assertSame(0, (int)(string)$instance); |
|
30 | 30 | unset($instance); |
31 | 31 | |
32 | 32 | $instance = new DuckInt(10); |
33 | - $this->assertSame(10, (int) (string) $instance); |
|
33 | + $this->assertSame(10, (int)(string)$instance); |
|
34 | 34 | unset($instance); |
35 | 35 | } |
36 | 36 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function benchCreateRand(): void |
40 | 40 | { |
41 | - new DuckFloat((float) mt_rand()); |
|
41 | + new DuckFloat((float)mt_rand()); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | public function benchCreateNumeric(): void |
52 | 52 | { |
53 | - new DuckString((string) mt_rand()); |
|
53 | + new DuckString((string)mt_rand()); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |