Test Failed
Pull Request — master (#927)
by Aleksei
18:42
created
src/Console/tests/Fixtures/UpdateClass.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,10 +9,12 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Core/tests/InvokerTest.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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']
Please login to merge, or discard this patch.
src/Http/tests/AcceptHeaderItemTest.php 1 patch
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Events/tests/Processor/ConfigProcessorTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Core/tests/Scope/UseCaseTest.php 1 patch
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@  discard block
 block discarded – undo
23 23
         $root = new Container();
24 24
         $root->bind('foo', SampleClass::class);
25 25
 
26
-        $root->scope(function (ContainerInterface $c1) {
26
+        $root->scope(function (ContainerInterface $c1)
27
+        {
27 28
             $c1->get('foo');
28 29
         }, bindings: ['foo' => SampleClass::class]);
29 30
 
@@ -54,7 +55,8 @@  discard block
 block discarded – undo
54 55
     {
55 56
         $root = new Container();
56 57
 
57
-        $root->scope(function (ContainerInterface $c1) use ($theSame, $alias) {
58
+        $root->scope(function (ContainerInterface $c1) use ($theSame, $alias)
59
+        {
58 60
             $obj1 = $c1->get($alias);
59 61
             $obj2 = $c1->get($alias);
60 62
 
@@ -79,14 +81,16 @@  discard block
 block discarded – undo
79 81
     {
80 82
         $root = new Container();
81 83
 
82
-        $root->scope(function (ContainerInterface $c1) use ($root) {
84
+        $root->scope(function (ContainerInterface $c1) use ($root)
85
+        {
83 86
             $obj1 = $c1->get('foo');
84 87
             $this->weakMap->offsetSet($obj1, true);
85 88
 
86 89
             self::assertNotSame($root, $c1);
87 90
             self::assertInstanceOf(stdClass::class, $obj1);
88 91
 
89
-            $c1->scope(function (ContainerInterface $c2) use ($root, $c1, $obj1) {
92
+            $c1->scope(function (ContainerInterface $c2) use ($root, $c1, $obj1)
93
+            {
90 94
                 $obj2 = $c2->get('foo');
91 95
                 $this->weakMap->offsetSet($obj2, true);
92 96
 
@@ -115,14 +119,16 @@  discard block
 block discarded – undo
115 119
         $root->bindSingleton('bar', [Factory::class, 'makeStdClass']);
116 120
         $root->bind(stdClass::class, new stdClass());
117 121
 
118
-        $root->scope(function (ContainerInterface $c1) use ($root) {
122
+        $root->scope(function (ContainerInterface $c1) use ($root)
123
+        {
119 124
             $obj1 = $c1->get('foo');
120 125
             $this->weakMap->offsetSet($obj1, true);
121 126
 
122 127
             self::assertInstanceOf(stdClass::class, $obj1);
123 128
             // Singleton must be the same
124 129
             self::assertSame($c1->get('bar'), $root->get('bar'));
125
-            $c1->scope(function (ContainerInterface $c2) use ($root, $obj1) {
130
+            $c1->scope(function (ContainerInterface $c2) use ($root, $obj1)
131
+            {
126 132
                 $obj2 = $c2->get('foo');
127 133
 
128 134
                 self::assertInstanceOf(stdClass::class, $obj2);
Please login to merge, or discard this patch.
src/Core/tests/Internal/Factory/CommonCasesTest.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,8 @@  discard block
 block discarded – undo
88 88
 
89 89
     public function testClosureFactory(): void
90 90
     {
91
-        $this->bind(Bucket::class, function ($data) {
91
+        $this->bind(Bucket::class, function ($data)
92
+        {
92 93
             return new Bucket('via-closure', $data);
93 94
         });
94 95
 
@@ -128,7 +129,8 @@  discard block
 block discarded – undo
128 129
         $sample = new SampleClass();
129 130
 
130 131
         $this->bind(Bucket::class, [Factory::class, 'makeBucketWithSample']);
131
-        $this->bind(SampleClass::class, function () use ($sample) {
132
+        $this->bind(SampleClass::class, function () use ($sample)
133
+        {
132 134
             return $sample;
133 135
         });
134 136
 
Please login to merge, or discard this patch.
src/Security/tests/GuardTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@
 block discarded – undo
40 40
     public function testAllows(): void
41 41
     {
42 42
         $this->permission->method('hasRole')
43
-            ->willReturnCallback(function (...$args) {
43
+            ->willReturnCallback(function (...$args)
44
+            {
44 45
                 static $series = [
45 46
                     [['user'], false],
46 47
                     [['admin'], true],
Please login to merge, or discard this patch.
src/Security/tests/PermissionManagerTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,8 @@
 block discarded – undo
78 78
 
79 79
         $this->rules->method('has')->willReturn(true);
80 80
         $this->rules->method('get')
81
-            ->willReturnCallback(function (...$args) use (&$series) {
81
+            ->willReturnCallback(function (...$args) use (&$series)
82
+            {
82 83
                 [$expectedArgs, $return] = \array_shift($series);
83 84
                 self::assertSame($expectedArgs, $args);
84 85
 
Please login to merge, or discard this patch.