@@ -108,7 +108,7 @@ |
||
| 108 | 108 | public function createHandler(array $definitions = []): AutowireHandler |
| 109 | 109 | { |
| 110 | 110 | $container = new Container(); |
| 111 | - foreach ($definitions as $id => $definition) { |
|
| 111 | + foreach ($definitions as $id => $definition){ |
|
| 112 | 112 | $container->bind($id, $definition); |
| 113 | 113 | } |
| 114 | 114 | |
@@ -108,7 +108,8 @@ |
||
| 108 | 108 | public function createHandler(array $definitions = []): AutowireHandler |
| 109 | 109 | { |
| 110 | 110 | $container = new Container(); |
| 111 | - foreach ($definitions as $id => $definition) { |
|
| 111 | + foreach ($definitions as $id => $definition) |
|
| 112 | + { |
|
| 112 | 113 | $container->bind($id, $definition); |
| 113 | 114 | } |
| 114 | 115 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function __construct( |
| 18 | 18 | ?EventDispatcherInterface $dispatcher = null |
| 19 | - ) { |
|
| 19 | + ){ |
|
| 20 | 20 | $this->pipeline = new InterceptorPipeline($dispatcher); |
| 21 | 21 | } |
| 22 | 22 | |
@@ -28,17 +28,17 @@ |
||
| 28 | 28 | $this->pipeline = clone $this->pipeline; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - public function withInterceptors(CoreInterceptorInterface|InterceptorInterface ...$interceptors): static |
|
| 31 | + public function withInterceptors(CoreInterceptorInterface | InterceptorInterface ...$interceptors): static |
|
| 32 | 32 | { |
| 33 | 33 | $clone = clone $this; |
| 34 | - foreach ($interceptors as $interceptor) { |
|
| 34 | + foreach ($interceptors as $interceptor){ |
|
| 35 | 35 | $clone->pipeline->addInterceptor($interceptor); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | return $clone; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function build(HandlerInterface|CoreInterface $handler): InterceptorPipeline |
|
| 41 | + public function build(HandlerInterface | CoreInterface $handler): InterceptorPipeline |
|
| 42 | 42 | { |
| 43 | 43 | /** @psalm-suppress InvalidArgument */ |
| 44 | 44 | return $handler instanceof HandlerInterface |