@@ -6,8 +6,8 @@ |
||
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 |
@@ -52,7 +52,7 @@ |
||
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(); |
@@ -12,9 +12,9 @@ |
||
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. |
@@ -9,7 +9,7 @@ |
||
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 | } |
@@ -7,7 +7,7 @@ |
||
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 |
@@ -9,8 +9,8 @@ |
||
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 |
@@ -38,8 +38,8 @@ |
||
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); |
@@ -11,9 +11,9 @@ |
||
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 |
@@ -18,6 +18,6 @@ |
||
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 | } |