@@ -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 | |
@@ -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 | } |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | */ |
| 74 | 74 | public function createHandler(IDriver $driver, ILoop $loop): Closure |
| 75 | 75 | { |
| 76 | - return static function () use ($driver, $loop): void { |
|
| 76 | + return static function() use ($driver, $loop): void { |
|
| 77 | 77 | $driver->interrupt(); |
| 78 | 78 | $loop->stop(); |
| 79 | 79 | }; |
@@ -45,13 +45,13 @@ |
||
| 45 | 45 | // Automatically run loop at the end of script, unless already started or stopped explicitly. |
| 46 | 46 | // @codeCoverageIgnoreStart |
| 47 | 47 | $hasRun = false; |
| 48 | - EventLoop::defer(static function () use (&$hasRun): void { |
|
| 48 | + EventLoop::defer(static function() use (&$hasRun): void { |
|
| 49 | 49 | $hasRun = true; |
| 50 | 50 | }); |
| 51 | 51 | |
| 52 | 52 | /** @psalm-suppress UnsupportedPropertyReferenceUsage */ |
| 53 | 53 | $stopped = &self::$stopped; |
| 54 | - register_shutdown_function(static function () use (&$hasRun, &$stopped): void { |
|
| 54 | + register_shutdown_function(static function() use (&$hasRun, &$stopped): void { |
|
| 55 | 55 | // Don't run if we're coming from a fatal error (uncaught exception). |
| 56 | 56 | if (self::error()) { // See [889ad594-ca28-4770-bb38-fd5bd8cb1777]. |
| 57 | 57 | return; |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | interface IInterval |
| 8 | 8 | { |
| 9 | 9 | final public const MIN_INTERVAL_MILLISECONDS = 10; |
| 10 | - final public const MAX_INTERVAL_MILLISECONDS = 900000; // 15 minutes |
|
| 10 | + final public const MAX_INTERVAL_MILLISECONDS = 900000; // 15 minutes |
|
| 11 | 11 | |
| 12 | 12 | public function toMicroseconds(): float; |
| 13 | 13 | |
@@ -19,8 +19,8 @@ |
||
| 19 | 19 | { |
| 20 | 20 | $this->options = |
| 21 | 21 | new PaletteOptions( |
| 22 | - interval: $this->options->getInterval() ?? $this->getInterval($this->extractStylingMode($mode)), |
|
| 23 | - reversed: $this->options->getReversed(), |
|
| 22 | + interval : $this->options->getInterval() ?? $this->getInterval($this->extractStylingMode($mode)), |
|
| 23 | + reversed : $this->options->getReversed(), |
|
| 24 | 24 | ); |
| 25 | 25 | |
| 26 | 26 | return parent::getOptions($mode); |