@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | $container = new Container(); |
| 72 | 72 | |
| 73 | - $container->bindSingleton('sampleClass', function () { |
|
| 73 | + $container->bindSingleton('sampleClass', function (){ |
|
| 74 | 74 | return new SampleClass(); |
| 75 | 75 | }); |
| 76 | 76 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $container = new Container(); |
| 145 | 145 | $container->bindSingleton('singleton', 'sampleClass'); |
| 146 | 146 | |
| 147 | - $container->bind('sampleClass', function () { |
|
| 147 | + $container->bind('sampleClass', function (){ |
|
| 148 | 148 | return new SampleClass(); |
| 149 | 149 | }); |
| 150 | 150 | |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | public function testHasShouldReturnTrueWhenSingletonIsAlreadyConstructed(): void |
| 189 | 189 | { |
| 190 | 190 | $container = new Container(); |
| 191 | - $class = new class implements SingletonInterface {}; |
|
| 191 | + $class = new class implements SingletonInterface{}; |
|
| 192 | 192 | |
| 193 | 193 | $this->assertFalse($container->has($class::class)); |
| 194 | 194 | |