@@ -143,22 +143,22 @@ discard block |
||
143 | 143 | IWidgetSettingsFactory::class => WidgetSettingsFactory::class, |
144 | 144 | // IWidthMeasurerFactory::class => WidthMeasurerFactory::class, |
145 | 145 | |
146 | - IDriver::class => static function (ContainerInterface $container): IDriver { |
|
146 | + IDriver::class => static function(ContainerInterface $container): IDriver { |
|
147 | 147 | return $container->get(IDriverFactory::class)->getDriver(); |
148 | 148 | }, |
149 | - IDriverLinker::class => static function (ContainerInterface $container): IDriverLinker { |
|
149 | + IDriverLinker::class => static function(ContainerInterface $container): IDriverLinker { |
|
150 | 150 | return $container->get(IDriverLinkerFactory::class)->getDriverLinker(); |
151 | 151 | }, |
152 | - IDriverSettings::class => static function (ContainerInterface $container): IDriverSettings { |
|
152 | + IDriverSettings::class => static function(ContainerInterface $container): IDriverSettings { |
|
153 | 153 | return $container->get(ISettingsProvider::class)->getDriverSettings(); |
154 | 154 | }, |
155 | - IIntervalNormalizer::class => static function (ContainerInterface $container): IIntervalNormalizer { |
|
155 | + IIntervalNormalizer::class => static function(ContainerInterface $container): IIntervalNormalizer { |
|
156 | 156 | return $container->get(IIntervalNormalizerFactory::class)->create(); |
157 | 157 | }, |
158 | - ILoop::class => static function (ContainerInterface $container): ILoop { |
|
158 | + ILoop::class => static function(ContainerInterface $container): ILoop { |
|
159 | 159 | return $container->get(ILoopFactory::class)->getLoop(); |
160 | 160 | }, |
161 | - ILoopProbeFactory::class => static function (): never { |
|
161 | + ILoopProbeFactory::class => static function(): never { |
|
162 | 162 | throw new DomainException( |
163 | 163 | sprintf( |
164 | 164 | 'Service for id [%s] is not available in this context.', |
@@ -166,10 +166,10 @@ discard block |
||
166 | 166 | ) |
167 | 167 | ); |
168 | 168 | }, |
169 | - ILoopProbe::class => static function (ContainerInterface $container): ILoopProbe { |
|
169 | + ILoopProbe::class => static function(ContainerInterface $container): ILoopProbe { |
|
170 | 170 | return $container->get(ILoopProbeFactory::class)->getProbe(); |
171 | 171 | }, |
172 | - ILoopSettingsFactory::class => static function (ContainerInterface $container): ILoopSettingsFactory { |
|
172 | + ILoopSettingsFactory::class => static function(ContainerInterface $container): ILoopSettingsFactory { |
|
173 | 173 | $loopProbe = null; |
174 | 174 | $signalProcessingProbe = null; |
175 | 175 | try { |
@@ -183,28 +183,28 @@ discard block |
||
183 | 183 | } |
184 | 184 | }, |
185 | 185 | |
186 | - IResourceStream::class => static function (ContainerInterface $container): IResourceStream { |
|
186 | + IResourceStream::class => static function(ContainerInterface $container): IResourceStream { |
|
187 | 187 | /** @var ISettingsProvider $provider */ |
188 | 188 | $provider = $container->get(ISettingsProvider::class); |
189 | 189 | return new ResourceStream($provider->getTerminalSettings()->getOutputStream()); |
190 | 190 | }, |
191 | 191 | |
192 | - ISettingsProvider::class => static function (ContainerInterface $container): ISettingsProvider { |
|
192 | + ISettingsProvider::class => static function(ContainerInterface $container): ISettingsProvider { |
|
193 | 193 | return $container->get(ISettingsProviderBuilder::class)->build(); |
194 | 194 | }, |
195 | - ISignalProcessingProbe::class => static function (ContainerInterface $container): ISignalProcessingProbe { |
|
195 | + ISignalProcessingProbe::class => static function(ContainerInterface $container): ISignalProcessingProbe { |
|
196 | 196 | return $container->get(ISignalProcessingProbeFactory::class)->getProbe(); |
197 | 197 | }, |
198 | 198 | ISignalProcessingProbeFactory::class => SignalProcessingProbeFactory::class, |
199 | 199 | |
200 | - ITerminalProbeFactory::class => static function (): ITerminalProbeFactory { |
|
200 | + ITerminalProbeFactory::class => static function(): ITerminalProbeFactory { |
|
201 | 201 | return new TerminalProbeFactory( |
202 | 202 | new ArrayObject([ |
203 | 203 | NativeTerminalProbe::class, |
204 | 204 | ]), |
205 | 205 | ); |
206 | 206 | }, |
207 | - ITerminalSettingsFactory::class => static function (ContainerInterface $container |
|
207 | + ITerminalSettingsFactory::class => static function(ContainerInterface $container |
|
208 | 208 | ): ITerminalSettingsFactory { |
209 | 209 | $terminalProbe = $container->get(ITerminalProbeFactory::class)->getProbe(); |
210 | 210 | |
@@ -215,13 +215,13 @@ discard block |
||
215 | 215 | // return $container->get(IWidthMeasurerFactory::class)->create(); |
216 | 216 | // }, |
217 | 217 | |
218 | - OptionNormalizerMode::class => static function (ContainerInterface $container): OptionNormalizerMode { |
|
218 | + OptionNormalizerMode::class => static function(ContainerInterface $container): OptionNormalizerMode { |
|
219 | 219 | return $container->get(ISettingsProvider::class)->getAuxSettings()->getOptionNormalizerMode(); |
220 | 220 | }, |
221 | - OptionCursor::class => static function (ContainerInterface $container): OptionCursor { |
|
221 | + OptionCursor::class => static function(ContainerInterface $container): OptionCursor { |
|
222 | 222 | return $container->get(ISettingsProvider::class)->getTerminalSettings()->getOptionCursor(); |
223 | 223 | }, |
224 | - OptionStyleMode::class => static function (ContainerInterface $container): OptionStyleMode { |
|
224 | + OptionStyleMode::class => static function(ContainerInterface $container): OptionStyleMode { |
|
225 | 225 | return $container->get(ISettingsProvider::class)->getTerminalSettings()->getOptionStyleMode(); |
226 | 226 | }, |
227 | 227 | ]; |