@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $binder = $this->constructor->get('binder', BinderInterface::class); |
48 | 48 | $factory = $this->constructor->get('factory', FactoryInterface::class); |
49 | 49 | |
50 | - $this->bindSingleton('test', new class implements SingletonInterface {}); |
|
50 | + $this->bindSingleton('test', new class implements SingletonInterface{}); |
|
51 | 51 | $factory->make('test'); |
52 | 52 | |
53 | 53 | $this->assertTrue($binder->hasInstance('test')); |
@@ -56,10 +56,10 @@ discard block |
||
56 | 56 | public function testHasInstanceAfterMakeWithoutAliasInScope(): void |
57 | 57 | { |
58 | 58 | $container = new Container(); |
59 | - $container->bindSingleton('test', new class implements SingletonInterface {}); |
|
59 | + $container->bindSingleton('test', new class implements SingletonInterface{}); |
|
60 | 60 | $container->make('test'); |
61 | 61 | |
62 | - $container->runScoped(function (BinderInterface $binder) { |
|
62 | + $container->runScoped(function (BinderInterface $binder){ |
|
63 | 63 | $this->assertTrue($binder->hasInstance('test')); |
64 | 64 | }); |
65 | 65 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $container->bindSingleton('test', SampleClass::class); |
82 | 82 | $container->make('test'); |
83 | 83 | |
84 | - $container->runScoped(function (BinderInterface $binder) { |
|
84 | + $container->runScoped(function (BinderInterface $binder){ |
|
85 | 85 | $this->assertTrue($binder->hasInstance('test')); |
86 | 86 | }); |
87 | 87 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $container->bindSingleton('bar', 'foo'); |
111 | 111 | $container->make('bar'); |
112 | 112 | |
113 | - $container->runScoped(function (BinderInterface $binder) { |
|
113 | + $container->runScoped(function (BinderInterface $binder){ |
|
114 | 114 | $this->assertTrue($binder->hasInstance('test')); |
115 | 115 | }); |
116 | 116 | } |