@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | { |
42 | 42 | public function __construct( |
43 | 43 | private readonly ConfiguratorInterface $config, |
44 | - ) { |
|
44 | + ){ |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | public function defineDependencies(): array |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $httpBinder->bindSingleton(TokenStorageInterface::class, [self::class, 'getTokenStorage']); |
78 | 78 | $httpBinder->bind( |
79 | 79 | AuthContextInterface::class, |
80 | - static fn (?ServerRequestInterface $request): AuthContextInterface => |
|
80 | + static fn (?ServerRequestInterface $request) : AuthContextInterface => |
|
81 | 81 | ($request ?? throw new InvalidRequestScopeException(AuthContextInterface::class)) |
82 | 82 | ->getAttribute(AuthMiddleware::ATTRIBUTE) ?? throw new ContextualObjectNotFoundException( |
83 | 83 | AuthContextInterface::class, |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param non-empty-string $name |
112 | 112 | * @param Autowire|HttpTransportInterface|class-string<HttpTransportInterface> $transport |
113 | 113 | */ |
114 | - public function addTransport(string $name, Autowire|HttpTransportInterface|string $transport): void |
|
114 | + public function addTransport(string $name, Autowire | HttpTransportInterface | string $transport): void |
|
115 | 115 | { |
116 | 116 | $this->config->modify(AuthConfig::CONFIG, new Append('transports', $name, $transport)); |
117 | 117 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * @param non-empty-string $name |
123 | 123 | * @param Autowire|TokenStorageInterface|class-string<TokenStorageInterface> $storage |
124 | 124 | */ |
125 | - public function addTokenStorage(string $name, Autowire|TokenStorageInterface|string $storage): void |
|
125 | + public function addTokenStorage(string $name, Autowire | TokenStorageInterface | string $storage): void |
|
126 | 126 | { |
127 | 127 | $this->config->modify(AuthConfig::CONFIG, new Append('storages', $name, $storage)); |
128 | 128 | } |
@@ -145,8 +145,8 @@ discard block |
||
145 | 145 | $registry = new TransportRegistry(); |
146 | 146 | $registry->setDefaultTransport($config->getDefaultTransport()); |
147 | 147 | |
148 | - foreach ($config->getTransports() as $name => $transport) { |
|
149 | - if ($transport instanceof Autowire) { |
|
148 | + foreach ($config->getTransports() as $name => $transport){ |
|
149 | + if ($transport instanceof Autowire){ |
|
150 | 150 | $transport = $transport->resolve($factory); |
151 | 151 | } |
152 | 152 |