Passed
Pull Request — master (#79)
by
unknown
02:20
created
src/Spinner/Contract/IInterval.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 
7 7
 interface IInterval
8 8
 {
9
-    final public const MIN_INTERVAL_MILLISECONDS = 10;      // 10 milliseconds
10
-    final public const MAX_INTERVAL_MILLISECONDS = 900000;  // 15 minutes
9
+    final public const MIN_INTERVAL_MILLISECONDS = 10; // 10 milliseconds
10
+    final public const MAX_INTERVAL_MILLISECONDS = 900000; // 15 minutes
11 11
 
12 12
     public function toMicroseconds(): float;
13 13
 
Please login to merge, or discard this patch.
src/Spinner/Core/A/ADriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     public function wrap(Closure $callback): Closure
53 53
     {
54 54
         return
55
-            function (mixed ...$args) use ($callback): void {
55
+            function(mixed ...$args) use ($callback): void {
56 56
                 $this->erase();
57 57
                 $callback(...$args);
58 58
                 $this->render();
Please login to merge, or discard this patch.
src/Spinner/Core/Contract/IDriver.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 use Closure;
13 13
 
14 14
 interface IDriver extends IObserver,
15
-                          ISubject,
16
-                          IRenderable,
17
-                          IHasInterval
15
+                            ISubject,
16
+                            IRenderable,
17
+                            IHasInterval
18 18
 {
19 19
     /**
20 20
      * Adds spinner to the driver.
Please login to merge, or discard this patch.
src/Spinner/Core/Widget/Contract/IWidget.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use AlecRabbit\Spinner\Contract\ISubject;
10 10
 
11 11
 interface IWidget extends ISubject,
12
-                          IHasInterval,
13
-                          IHasFrame
12
+                            IHasInterval,
13
+                            IHasFrame
14 14
 {
15 15
 }
Please login to merge, or discard this patch.
src/Spinner/Core/Widget/Contract/IWidgetComposite.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use AlecRabbit\Spinner\Contract\IObserver;
8 8
 
9 9
 interface IWidgetComposite extends IWidget,
10
-                                   IObserver
10
+                                    IObserver
11 11
 {
12 12
     public function add(IWidgetContext $context): IWidgetContext;
13 13
 
Please login to merge, or discard this patch.
src/Spinner/Core/Widget/Contract/IWidgetContext.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
 use AlecRabbit\Spinner\Contract\ISubject;
10 10
 
11 11
 interface IWidgetContext extends IObserver,
12
-                                 ISubject,
13
-                                 IHasNullableInterval
12
+                                    ISubject,
13
+                                    IHasNullableInterval
14 14
 {
15 15
     public function setWidget(?IWidget $widget): void;
16 16
 
Please login to merge, or discard this patch.
src/Spinner/Core/Palette/Snake.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
     {
39 39
         $this->options =
40 40
             new PaletteOptions(
41
-                interval: $this->options->getInterval() ?? 80,
42
-                reversed: $this->options->getReversed(),
41
+                interval : $this->options->getInterval() ?? 80,
42
+                reversed : $this->options->getReversed(),
43 43
             );
44 44
 
45 45
         return parent::getOptions($mode);
Please login to merge, or discard this patch.
src/Spinner/Core/Contract/ISpinner.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 use AlecRabbit\Spinner\Core\Widget\Contract\IWidgetContext;
12 12
 
13 13
 interface ISpinner extends IObserver,
14
-                           ISubject,
15
-                           IHasInterval,
16
-                           IHasFrame
14
+                            ISubject,
15
+                            IHasInterval,
16
+                            IHasFrame
17 17
 {
18 18
     public function add(IWidgetContext $element): IWidgetContext;
19 19
 
Please login to merge, or discard this patch.
src/Spinner/Core/Loop/Contract/A/ALoopAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
         return (bool)(($error['type'] ?? 0)
20 20
             &
21
-            (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR));
21
+            (E_ERROR|E_CORE_ERROR|E_COMPILE_ERROR|E_USER_ERROR|E_RECOVERABLE_ERROR));
22 22
     }
23 23
 }
Please login to merge, or discard this patch.