@@ -9,10 +9,12 @@ |
||
9 | 9 | |
10 | 10 | final class UpdateClass |
11 | 11 | { |
12 | - public function do(OutputInterface $output): void |
|
12 | + public function do{ |
|
13 | + (OutputInterface $output): void |
|
13 | 14 | { |
14 | 15 | $output->write('OK'); |
15 | 16 | } |
17 | + } |
|
16 | 18 | |
17 | 19 | public function err(OutputInterface $output): void |
18 | 20 | { |
@@ -18,9 +18,9 @@ |
||
18 | 18 | |
19 | 19 | public static function trailingProvider(): \Traversable |
20 | 20 | { |
21 | - yield ['name7', 7, 'name',]; |
|
22 | - yield ['name', 0, 'name',]; |
|
23 | - yield ['name0', 0, 'name',]; |
|
21 | + yield ['name7', 7, 'name', ]; |
|
22 | + yield ['name', 0, 'name', ]; |
|
23 | + yield ['name0', 0, 'name', ]; |
|
24 | 24 | yield ['name1', 1, 'name']; |
25 | 25 | yield ['name-1', 1, 'name-']; |
26 | 26 | yield ['name-1', -1, 'name']; |
@@ -22,15 +22,15 @@ |
||
22 | 22 | // empty input |
23 | 23 | yield [[], 5, 5]; |
24 | 24 | // in the gap (not taken) |
25 | - yield [[3, 4, 8, 9,], 6, 6]; |
|
26 | - yield [[3, 4, 8, 9,], 1, 1]; |
|
25 | + yield [[3, 4, 8, 9, ], 6, 6]; |
|
26 | + yield [[3, 4, 8, 9, ], 1, 1]; |
|
27 | 27 | // in the sequence (taken) |
28 | - yield [[3, 4, 8, 9,], 4, 0]; |
|
29 | - yield [[0, 1, 4, 5,], 5, 2]; |
|
28 | + yield [[3, 4, 8, 9, ], 4, 0]; |
|
29 | + yield [[0, 1, 4, 5, ], 5, 2]; |
|
30 | 30 | // do not use "1" |
31 | - yield [[0, 3, 4, 8,], 4, 2]; |
|
31 | + yield [[0, 3, 4, 8, ], 4, 2]; |
|
32 | 32 | // full sequence, take next |
33 | - yield [[0, 1, 2, 3,], 3, 4]; |
|
33 | + yield [[0, 1, 2, 3, ], 3, 4]; |
|
34 | 34 | yield [[0], 0, 2]; |
35 | 35 | } |
36 | 36 |
@@ -26,14 +26,14 @@ |
||
26 | 26 | parent::setUp(); |
27 | 27 | } |
28 | 28 | |
29 | - protected function bind(string $alias, string|array|callable|object $resolver): void |
|
29 | + protected function bind(string $alias, string | array | callable | object $resolver): void |
|
30 | 30 | { |
31 | 31 | $binder = $this->constructor->get('binder', BinderInterface::class); |
32 | 32 | \assert($binder instanceof BinderInterface); |
33 | 33 | $binder->bind($alias, $resolver); |
34 | 34 | } |
35 | 35 | |
36 | - protected function bindSingleton(string $alias, string|array|callable|object $resolver): void |
|
36 | + protected function bindSingleton(string $alias, string | array | callable | object $resolver): void |
|
37 | 37 | { |
38 | 38 | $binder = $this->constructor->get('binder', BinderInterface::class); |
39 | 39 | \assert($binder instanceof BinderInterface); |
@@ -26,14 +26,14 @@ |
||
26 | 26 | parent::setUp(); |
27 | 27 | } |
28 | 28 | |
29 | - protected function bind(string $alias, string|array|callable|object $resolver): void |
|
29 | + protected function bind(string $alias, string | array | callable | object $resolver): void |
|
30 | 30 | { |
31 | 31 | $binder = $this->constructor->get('binder', BinderInterface::class); |
32 | 32 | \assert($binder instanceof BinderInterface); |
33 | 33 | $binder->bind($alias, $resolver); |
34 | 34 | } |
35 | 35 | |
36 | - protected function bindSingleton(string $alias, string|array|callable|object $resolver): void |
|
36 | + protected function bindSingleton(string $alias, string | array | callable | object $resolver): void |
|
37 | 37 | { |
38 | 38 | $binder = $this->constructor->get('binder', BinderInterface::class); |
39 | 39 | \assert($binder instanceof BinderInterface); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | $parser = new Parser(); |
32 | 32 | |
33 | - foreach (static::GRAMMARS as $grammar => $syntax) { |
|
33 | + foreach (static::GRAMMARS as $grammar => $syntax){ |
|
34 | 34 | $parser->addSyntax(new $grammar(), new $syntax()); |
35 | 35 | } |
36 | 36 |
@@ -30,7 +30,8 @@ |
||
30 | 30 | { |
31 | 31 | $parser = new Parser(); |
32 | 32 | |
33 | - foreach (static::GRAMMARS as $grammar => $syntax) { |
|
33 | + foreach (static::GRAMMARS as $grammar => $syntax) |
|
34 | + { |
|
34 | 35 | $parser->addSyntax(new $grammar(), new $syntax()); |
35 | 36 | } |
36 | 37 |
@@ -42,12 +42,12 @@ |
||
42 | 42 | protected function compile(Template $document): string |
43 | 43 | { |
44 | 44 | $compiler = new Compiler(); |
45 | - foreach (static::RENDERS as $renderer) { |
|
45 | + foreach (static::RENDERS as $renderer){ |
|
46 | 46 | $compiler->addRenderer(new $renderer()); |
47 | 47 | } |
48 | 48 | |
49 | 49 | $directiveGroup = new DirectiveGroup(); |
50 | - foreach (static::DIRECTIVES as $directive) { |
|
50 | + foreach (static::DIRECTIVES as $directive){ |
|
51 | 51 | $directiveGroup->addDirective(new $directive()); |
52 | 52 | } |
53 | 53 |
@@ -42,12 +42,14 @@ |
||
42 | 42 | protected function compile(Template $document): string |
43 | 43 | { |
44 | 44 | $compiler = new Compiler(); |
45 | - foreach (static::RENDERS as $renderer) { |
|
45 | + foreach (static::RENDERS as $renderer) |
|
46 | + { |
|
46 | 47 | $compiler->addRenderer(new $renderer()); |
47 | 48 | } |
48 | 49 | |
49 | 50 | $directiveGroup = new DirectiveGroup(); |
50 | - foreach (static::DIRECTIVES as $directive) { |
|
51 | + foreach (static::DIRECTIVES as $directive) |
|
52 | + { |
|
51 | 53 | $directiveGroup->addDirective(new $directive()); |
52 | 54 | } |
53 | 55 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | protected function compile(Template $document): string |
35 | 35 | { |
36 | 36 | $compiler = new Compiler(); |
37 | - foreach (static::RENDERS as $renderer) { |
|
37 | + foreach (static::RENDERS as $renderer){ |
|
38 | 38 | $compiler->addRenderer(new $renderer()); |
39 | 39 | } |
40 | 40 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | { |
50 | 50 | $parser = new Parser(); |
51 | 51 | |
52 | - foreach (static::GRAMMARS as $grammar => $syntax) { |
|
52 | + foreach (static::GRAMMARS as $grammar => $syntax){ |
|
53 | 53 | $parser->addSyntax(new $grammar(), new $syntax()); |
54 | 54 | } |
55 | 55 |
@@ -34,7 +34,8 @@ discard block |
||
34 | 34 | protected function compile(Template $document): string |
35 | 35 | { |
36 | 36 | $compiler = new Compiler(); |
37 | - foreach (static::RENDERS as $renderer) { |
|
37 | + foreach (static::RENDERS as $renderer) |
|
38 | + { |
|
38 | 39 | $compiler->addRenderer(new $renderer()); |
39 | 40 | } |
40 | 41 | |
@@ -49,7 +50,8 @@ discard block |
||
49 | 50 | { |
50 | 51 | $parser = new Parser(); |
51 | 52 | |
52 | - foreach (static::GRAMMARS as $grammar => $syntax) { |
|
53 | + foreach (static::GRAMMARS as $grammar => $syntax) |
|
54 | + { |
|
53 | 55 | $parser->addSyntax(new $grammar(), new $syntax()); |
54 | 56 | } |
55 | 57 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | abstract class AttributeTestCase extends m\Adapter\Phpunit\MockeryTestCase |
11 | 11 | { |
12 | - protected m\LegacyMockInterface|m\MockInterface|InputInterface $input; |
|
12 | + protected m\LegacyMockInterface | m\MockInterface | InputInterface $input; |
|
13 | 13 | protected string $baz; |
14 | 14 | |
15 | 15 | protected function setUp(): void |