@@ -436,7 +436,7 @@ |
||
436 | 436 | return 0; |
437 | 437 | } |
438 | 438 | |
439 | - return (int)((round($b / 255) << 2) | (round($g / 255) << 1) | round($r / 255)); |
|
439 | + return (int)((round($b / 255) << 2)|(round($g / 255) << 1)|round($r / 255)); |
|
440 | 440 | } |
441 | 441 | |
442 | 442 | private function getSaturation(int $r, int $g, int $b): int |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * @return Generator<IFrame> |
33 | 33 | * @throws InvalidArgumentException |
34 | 34 | */ |
35 | - function (): Generator { |
|
35 | + function(): Generator { |
|
36 | 36 | /** @var IFrame|Stringable|string|int|array<string,int|null> $entry */ |
37 | 37 | foreach ($this->pattern->getPattern() as $entry) { |
38 | 38 | if ($entry instanceof IFrame) { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | public function add(IWidgetComposite|IWidgetContext $element): IWidgetContext |
81 | 81 | { |
82 | 82 | $this->wrap( |
83 | - function () use ($element, &$result): void { |
|
83 | + function() use ($element, &$result): void { |
|
84 | 84 | $result = $this->rootWidget->add($element); |
85 | 85 | } |
86 | 86 | ); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | public function remove(IWidgetComposite|IWidgetContext $element): void |
117 | 117 | { |
118 | 118 | $this->wrap( |
119 | - function () use ($element) { |
|
119 | + function() use ($element) { |
|
120 | 120 | $this->rootWidget->remove($element); |
121 | 121 | } |
122 | 122 | ); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | protected const UPDATE_INTERVAL = 1000; |
18 | 18 | |
19 | 19 | /** @var array */ |
20 | - protected const PATTERN = [' ', ' u', 'un', 'nd', 'de', 'ef', 'fi', 'in', 'ne', 'ed', 'd ',]; |
|
20 | + protected const PATTERN = [' ', ' u', 'un', 'nd', 'de', 'ef', 'fi', 'in', 'ne', 'ed', 'd ', ]; |
|
21 | 21 | |
22 | 22 | public function __construct( |
23 | 23 | protected ?int $interval = null, |
@@ -12,5 +12,5 @@ |
||
12 | 12 | { |
13 | 13 | protected const UPDATE_INTERVAL = 300; |
14 | 14 | |
15 | - protected const PATTERN = [' |
@@ -12,5 +12,5 @@ |
||
12 | 12 | { |
13 | 13 | protected const UPDATE_INTERVAL = 120; |
14 | 14 | |
15 | - protected const PATTERN = ['⚀', '⚁', '⚂', '⚃', '⚄', '⚅',]; |
|
15 | + protected const PATTERN = ['⚀', '⚁', '⚂', '⚃', '⚄', '⚅', ]; |
|
16 | 16 | } |
@@ -12,5 +12,5 @@ |
||
12 | 12 | { |
13 | 13 | protected const UPDATE_INTERVAL = 160; |
14 | 14 | |
15 | - protected const PATTERN = ['⢀', '⡀', '⠄', '⠂', '⠁', '⠈', '⠐', '⠠',]; |
|
15 | + protected const PATTERN = ['⢀', '⡀', '⠄', '⠂', '⠁', '⠈', '⠐', '⠠', ]; |
|
16 | 16 | } |
@@ -12,5 +12,5 @@ |
||
12 | 12 | { |
13 | 13 | protected const UPDATE_INTERVAL = 300; |
14 | 14 | |
15 | - protected const PATTERN = [' |
@@ -12,5 +12,5 @@ |
||
12 | 12 | { |
13 | 13 | protected const UPDATE_INTERVAL = 160; |
14 | 14 | |
15 | - protected const PATTERN = ['◐', '◓', '◑', '◒',]; |
|
15 | + protected const PATTERN = ['◐', '◓', '◑', '◒', ]; |
|
16 | 16 | } |