Passed
Push — master ( 055025...73f9b0 )
by Aleksei
12:05
created
src/Console/tests/Configurator/Attribute/ArgumentsTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
         $result = $this->parser->parse(new \ReflectionClass(
183 183
             new #[AsCommand(name: 'foo')] class {
184 184
                 #[Argument]
185
-                private int|\stdClass $arg;
185
+                private int | \stdClass $arg;
186 186
             }
187 187
         ));
188 188
 
Please login to merge, or discard this patch.
Braces   +28 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@  discard block
 block discarded – undo
25 25
     public function testRequired(): void
26 26
     {
27 27
         $result = $this->parser->parse(new \ReflectionClass(
28
-            new #[AsCommand(name: 'foo')] class {
28
+            new #[AsCommand(name: 'foo')] class
29
+            {
29 30
                 #[Argument]
30 31
                 private int $arg;
31 32
             }
@@ -41,7 +42,8 @@  discard block
 block discarded – undo
41 42
     public function testWithDefaultValue(): void
42 43
     {
43 44
         $result = $this->parser->parse(new \ReflectionClass(
44
-            new #[AsCommand(name: 'foo')] class {
45
+            new #[AsCommand(name: 'foo')] class
46
+            {
45 47
                 #[Argument]
46 48
                 private int $arg = 1;
47 49
             }
@@ -57,7 +59,8 @@  discard block
 block discarded – undo
57 59
     public function testNullable(): void
58 60
     {
59 61
         $result = $this->parser->parse(new \ReflectionClass(
60
-            new #[AsCommand(name: 'foo')] class {
62
+            new #[AsCommand(name: 'foo')] class
63
+            {
61 64
                 #[Argument]
62 65
                 private ?int $arg;
63 66
             }
@@ -73,7 +76,8 @@  discard block
 block discarded – undo
73 76
     public function testWithName(): void
74 77
     {
75 78
         $result = $this->parser->parse(new \ReflectionClass(
76
-            new #[AsCommand(name: 'foo')] class {
79
+            new #[AsCommand(name: 'foo')] class
80
+            {
77 81
                 #[Argument(name: 'customName')]
78 82
                 private int $arg;
79 83
             }
@@ -89,7 +93,8 @@  discard block
 block discarded – undo
89 93
     public function testWithDescription(): void
90 94
     {
91 95
         $result = $this->parser->parse(new \ReflectionClass(
92
-            new #[AsCommand(name: 'foo')] class {
96
+            new #[AsCommand(name: 'foo')] class
97
+            {
93 98
                 #[Argument(description: 'Some description')]
94 99
                 private int $arg;
95 100
             }
@@ -105,7 +110,8 @@  discard block
 block discarded – undo
105 110
     public function testWithSuggestedValue(): void
106 111
     {
107 112
         $result = $this->parser->parse(new \ReflectionClass(
108
-            new #[AsCommand(name: 'foo')] class {
113
+            new #[AsCommand(name: 'foo')] class
114
+            {
109 115
                 #[Argument(suggestedValues: [1, 0])]
110 116
                 private int $arg;
111 117
             }
@@ -129,7 +135,8 @@  discard block
 block discarded – undo
129 135
     public function testArrayRequired(): void
130 136
     {
131 137
         $result = $this->parser->parse(new \ReflectionClass(
132
-            new #[AsCommand(name: 'foo')] class {
138
+            new #[AsCommand(name: 'foo')] class
139
+            {
133 140
                 #[Argument]
134 141
                 private array $arg;
135 142
             }
@@ -145,7 +152,8 @@  discard block
 block discarded – undo
145 152
     public function testArrayNotRequired(): void
146 153
     {
147 154
         $result = $this->parser->parse(new \ReflectionClass(
148
-            new #[AsCommand(name: 'foo')] class {
155
+            new #[AsCommand(name: 'foo')] class
156
+            {
149 157
                 #[Argument]
150 158
                 private ?array $arg;
151 159
             }
@@ -161,7 +169,8 @@  discard block
 block discarded – undo
161 169
     public function testArrayShouldBeLast(): void
162 170
     {
163 171
         $result = $this->parser->parse(new \ReflectionClass(
164
-            new #[AsCommand(name: 'foo')] class {
172
+            new #[AsCommand(name: 'foo')] class
173
+            {
165 174
                 #[Argument]
166 175
                 private ?array $arg;
167 176
 
@@ -180,7 +189,8 @@  discard block
 block discarded – undo
180 189
     public function testUnionTypeWithBuiltInAndNot(): void
181 190
     {
182 191
         $result = $this->parser->parse(new \ReflectionClass(
183
-            new #[AsCommand(name: 'foo')] class {
192
+            new #[AsCommand(name: 'foo')] class
193
+            {
184 194
                 #[Argument]
185 195
                 private int|\stdClass $arg;
186 196
             }
@@ -197,7 +207,8 @@  discard block
 block discarded – undo
197 207
     {
198 208
         $this->expectException(ConfiguratorException::class);
199 209
         $this->parser->parse(new \ReflectionClass(
200
-            new #[AsCommand(name: 'foo')] class {
210
+            new #[AsCommand(name: 'foo')] class
211
+            {
201 212
                 #[Argument]
202 213
                 private \stdClass $arg;
203 214
             }
@@ -208,7 +219,8 @@  discard block
 block discarded – undo
208 219
     {
209 220
         $this->expectException(ConfiguratorException::class);
210 221
         $this->parser->parse(new \ReflectionClass(
211
-            new #[AsCommand(name: 'foo')] class {
222
+            new #[AsCommand(name: 'foo')] class
223
+            {
212 224
                 #[Argument]
213 225
                 private \stdClass&\Traversable $arg;
214 226
             }
@@ -219,7 +231,8 @@  discard block
 block discarded – undo
219 231
     {
220 232
         $this->expectException(ConfiguratorException::class);
221 233
         $this->parser->parse(new \ReflectionClass(
222
-            new #[AsCommand(name: 'foo')] class {
234
+            new #[AsCommand(name: 'foo')] class
235
+            {
223 236
                 #[Argument]
224 237
                 private array $arg;
225 238
 
@@ -233,7 +246,8 @@  discard block
 block discarded – undo
233 246
     {
234 247
         $this->expectException(ConfiguratorException::class);
235 248
         $this->parser->parse(new \ReflectionClass(
236
-            new #[AsCommand(name: 'foo')] class {
249
+            new #[AsCommand(name: 'foo')] class
250
+            {
237 251
                 #[Argument]
238 252
                 private object $arg;
239 253
             }
Please login to merge, or discard this patch.
src/Console/src/Attribute/AsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
         public readonly string $name,
14 14
         public readonly ?string $description = null,
15 15
         public readonly ?string $help = null
16
-    ) {
16
+    ){
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Console/src/Attribute/Argument.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public function __construct(
18 18
         public readonly ?string $name = null,
19 19
         public readonly ?string $description = null,
20
-        public readonly \Closure|array $suggestedValues = [],
21
-    ) {
20
+        public readonly \Closure | array $suggestedValues = [],
21
+    ){
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Console/src/Attribute/Question.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
     public function __construct(
14 14
         public readonly string $question,
15 15
         public readonly ?string $argument = null
16
-    ) {
16
+    ){
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Console/src/Configurator/Configurator.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
      */
17 17
     public function __construct(
18 18
         private readonly array $configurators = []
19
-    ) {
19
+    ){
20 20
     }
21 21
 
22 22
     public function configure(Command $command, \ReflectionClass $reflection): void
23 23
     {
24
-        foreach ($this->configurators as $configurator) {
25
-            if ($configurator->canConfigure($command, $reflection)) {
24
+        foreach ($this->configurators as $configurator){
25
+            if ($configurator->canConfigure($command, $reflection)){
26 26
                 $configurator->configure($command, $reflection);
27 27
                 return;
28 28
             }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,10 @@
 block discarded – undo
21 21
 
22 22
     public function configure(Command $command, \ReflectionClass $reflection): void
23 23
     {
24
-        foreach ($this->configurators as $configurator) {
25
-            if ($configurator->canConfigure($command, $reflection)) {
24
+        foreach ($this->configurators as $configurator)
25
+        {
26
+            if ($configurator->canConfigure($command, $reflection))
27
+            {
26 28
                 $configurator->configure($command, $reflection);
27 29
                 return;
28 30
             }
Please login to merge, or discard this patch.
src/Console/src/Interceptor/AttributeInterceptor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     public function __construct(
16 16
         private readonly Parser $parser
17
-    ) {
17
+    ){
18 18
     }
19 19
 
20 20
     public function process(string $controller, string $action, array $parameters, CoreInterface $core): int
Please login to merge, or discard this patch.
src/SendIt/src/TransportResolver.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     public function __construct(
18 18
         private readonly Transport $transport,
19
-    ) {
19
+    ){
20 20
     }
21 21
 
22 22
     public function registerTransport(TransportFactoryInterface $factory): void
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
     public function resolve(string $dsn): TransportInterface
28 28
     {
29 29
         $dsnDto = Dsn::fromString($dsn);
30
-        foreach ($this->transports as $transport) {
31
-            if ($transport->supports($dsnDto)) {
30
+        foreach ($this->transports as $transport){
31
+            if ($transport->supports($dsnDto)){
32 32
                 return $transport->create($dsnDto);
33 33
             }
34 34
         }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,10 @@
 block discarded – undo
27 27
     public function resolve(string $dsn): TransportInterface
28 28
     {
29 29
         $dsnDto = Dsn::fromString($dsn);
30
-        foreach ($this->transports as $transport) {
31
-            if ($transport->supports($dsnDto)) {
30
+        foreach ($this->transports as $transport)
31
+        {
32
+            if ($transport->supports($dsnDto))
33
+            {
32 34
                 return $transport->create($dsnDto);
33 35
             }
34 36
         }
Please login to merge, or discard this patch.
src/SendIt/src/Bootloader/MailerBootloader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function __construct(
50 50
         private readonly ConfiguratorInterface $config
51
-    ) {
51
+    ){
52 52
     }
53 53
 
54 54
     public function init(EnvironmentInterface $env): void
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
     public function mailer(TransportInterface $transport, ?EventDispatcherInterface $dispatcher = null): SymfonyMailer
85 85
     {
86 86
         return new Mailer(
87
-            transport: $transport,
88
-            dispatcher: $dispatcher
87
+            transport : $transport,
88
+            dispatcher : $dispatcher
89 89
         );
90 90
     }
91 91
 
Please login to merge, or discard this patch.
src/Core/src/BinderInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *
21 21
      * @param TResolver $resolver
22 22
      */
23
-    public function bind(string $alias, string|array|callable|object $resolver): void;
23
+    public function bind(string $alias, string | array | callable | object $resolver): void;
24 24
 
25 25
     /**
26 26
      * Bind value resolver to container alias to be executed as cached. Resolver can be class name
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param TResolver $resolver Can be result object or
30 30
      *        the same special callable value like the $target parameter in the {@see InvokerInterface::invoke()} method
31 31
      */
32
-    public function bindSingleton(string $alias, string|array|callable|object $resolver): void;
32
+    public function bindSingleton(string $alias, string | array | callable | object $resolver): void;
33 33
 
34 34
     /**
35 35
      * Check if alias points to constructed instance (singleton).
Please login to merge, or discard this patch.