Passed
Pull Request — master (#59)
by
unknown
13:24
created
src/Spinner/Core/Widget/Contract/IWidget.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 use AlecRabbit\Spinner\Contract\ISubject;
11 11
 
12 12
 interface IWidget extends IObserver,
13
-                          ISubject,
14
-                          IHasInterval,
15
-                          IHasFrame,
16
-                          IHasWidgetContext
13
+                            ISubject,
14
+                            IHasInterval,
15
+                            IHasFrame,
16
+                            IHasWidgetContext
17 17
 {
18 18
     public function add(IWidget $widget): IWidgetContext;
19 19
 
Please login to merge, or discard this patch.
src/Spinner/Core/LoopSetup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     {
48 48
         yield from [
49 49
             // @codeCoverageIgnoreStart
50
-            SIGINT => function () use ($driver): void {
50
+            SIGINT => function() use ($driver): void {
51 51
                 $driver->interrupt(PHP_EOL . 'SIGINT' . PHP_EOL); // todo: test
52 52
                 $this->loop->stop();
53 53
             },
Please login to merge, or discard this patch.
src/Spinner/bootstrap.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -143,22 +143,22 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     ];
Please login to merge, or discard this patch.