@@ -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 | { |
@@ -95,7 +95,8 @@ discard block |
||
| 95 | 95 | $this->container->bindSingleton(Bucket::class, $bucket = new Bucket('foo')); |
| 96 | 96 | |
| 97 | 97 | $result = $this->container->invoke( |
| 98 | - static function (Bucket $bucket, SampleClass $class, string $name, string $path = 'baz') { |
|
| 98 | + static function (Bucket $bucket, SampleClass $class, string $name, string $path = 'baz') |
|
| 99 | + { |
|
| 99 | 100 | return \compact('bucket', 'class', 'name', 'path'); |
| 100 | 101 | }, |
| 101 | 102 | ['name' => 'bar'] |
@@ -113,7 +114,8 @@ discard block |
||
| 113 | 114 | $this->expectExceptionMessage('Unable to resolve required argument `name` when resolving'); |
| 114 | 115 | |
| 115 | 116 | $this->container->invoke( |
| 116 | - static function (Bucket $bucket, SampleClass $class, string $name, string $path = 'baz') { |
|
| 117 | + static function (Bucket $bucket, SampleClass $class, string $name, string $path = 'baz') |
|
| 118 | + { |
|
| 117 | 119 | return \compact('bucket', 'class', 'name', 'path'); |
| 118 | 120 | }, |
| 119 | 121 | ['name' => 'bar'] |
@@ -21,7 +21,8 @@ discard block |
||
| 21 | 21 | public static function emptyItemProvider(): iterable |
| 22 | 22 | { |
| 23 | 23 | $values = ['', ' ']; |
| 24 | - foreach ($values as $value) { |
|
| 24 | + foreach ($values as $value) |
|
| 25 | + { |
|
| 25 | 26 | yield from [ |
| 26 | 27 | [AcceptHeaderItem::fromString($value)], |
| 27 | 28 | [new AcceptHeaderItem($value)], |
@@ -58,11 +59,13 @@ discard block |
||
| 58 | 59 | #[DataProvider('qualityBoundariesProvider')] |
| 59 | 60 | public function testItemQualityBoundaries(float $quality, AcceptHeaderItem $item): void |
| 60 | 61 | { |
| 61 | - if ($quality > 1) { |
|
| 62 | + if ($quality > 1) |
|
| 63 | + { |
|
| 62 | 64 | $this->assertSame(1.0, $item->getQuality()); |
| 63 | 65 | } |
| 64 | 66 | |
| 65 | - if ($quality < 0) { |
|
| 67 | + if ($quality < 0) |
|
| 68 | + { |
|
| 66 | 69 | $this->assertSame(0.0, $item->getQuality()); |
| 67 | 70 | } |
| 68 | 71 | |
@@ -73,7 +76,8 @@ discard block |
||
| 73 | 76 | public static function qualityBoundariesProvider(): iterable |
| 74 | 77 | { |
| 75 | 78 | $qualities = [-1, 0, 0.5, 1, 2]; |
| 76 | - foreach ($qualities as $quality) { |
|
| 79 | + foreach ($qualities as $quality) |
|
| 80 | + { |
|
| 77 | 81 | yield from [ |
| 78 | 82 | [$quality, AcceptHeaderItem::fromString("*;q=$quality")], |
| 79 | 83 | [$quality, AcceptHeaderItem::fromString("*;Q=$quality")], |
@@ -106,9 +110,11 @@ discard block |
||
| 106 | 110 | ] |
| 107 | 111 | ]; |
| 108 | 112 | |
| 109 | - foreach ($set as $params) { |
|
| 113 | + foreach ($set as $params) |
|
| 114 | + { |
|
| 110 | 115 | $formattedParams = []; |
| 111 | - foreach ($params['passed'] as $k => $v) { |
|
| 116 | + foreach ($params['passed'] as $k => $v) |
|
| 117 | + { |
|
| 112 | 118 | $formattedParams[] = "$k=$v"; |
| 113 | 119 | } |
| 114 | 120 | |
@@ -21,7 +21,8 @@ |
||
| 21 | 21 | #[DataProvider('listenersDataProvider')] |
| 22 | 22 | public function testProcess(array $listener, array $args): void |
| 23 | 23 | { |
| 24 | - $registry = new class() implements ListenerRegistryInterface { |
|
| 24 | + $registry = new class() implements ListenerRegistryInterface |
|
| 25 | + { |
|
| 25 | 26 | |
| 26 | 27 | public string $event; |
| 27 | 28 | public \Closure $listener; |