Test Failed
Pull Request — master (#878)
by butschster
08:18
created
src/Console/tests/Configurator/Attribute/FillPropertiesTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             ->method('getArgument')
37 37
             ->willReturnOnConsecutiveCalls(5, 'foo', ['foo', 'bar'], 0.5, true);
38 38
 
39
-        $command = new #[AsCommand('foo')] class extends Command {
39
+        $command = new #[AsCommand('foo')] class extends Command{
40 40
             #[Argument]
41 41
             public int $intVal;
42 42
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             ->expects($this->never())
76 76
             ->method('getArgument');
77 77
 
78
-        $command = new #[AsCommand('foo')] class extends Command {
78
+        $command = new #[AsCommand('foo')] class extends Command{
79 79
             #[Argument]
80 80
             public int $arg;
81 81
         };
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             ->method('getOption')
99 99
             ->willReturnOnConsecutiveCalls(5, 'foo', ['foo', 'bar'], 0.5, true, true);
100 100
 
101
-        $command = new #[AsCommand('foo')] class extends Command {
101
+        $command = new #[AsCommand('foo')] class extends Command{
102 102
             #[Option(mode: InputOption::VALUE_REQUIRED)]
103 103
             public int $intVal;
104 104
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             ->expects($this->never())
142 142
             ->method('getOption');
143 143
 
144
-        $command = new #[AsCommand('foo')] class extends Command {
144
+        $command = new #[AsCommand('foo')] class extends Command{
145 145
             #[Option(mode: InputOption::VALUE_REQUIRED)]
146 146
             public int $option;
147 147
         };
Please login to merge, or discard this patch.
src/Console/tests/Configurator/Attribute/OptionsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
         $result = $this->parser->parse(new \ReflectionClass(
235 235
             new #[AsCommand(name: 'foo')] class {
236 236
                 #[Option(mode: InputOption::VALUE_OPTIONAL)]
237
-                private int|\stdClass $option;
237
+                private int | \stdClass $option;
238 238
             }
239 239
         ));
240 240
 
Please login to merge, or discard this patch.
src/Console/tests/Configurator/Attribute/ArgumentsTest.php 1 patch
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.
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/Option.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
      */
20 20
     public function __construct(
21 21
         public readonly ?string $name = null,
22
-        public readonly string|array|null $shortcut = null,
22
+        public readonly string | array | null $shortcut = null,
23 23
         public readonly ?string $description = null,
24 24
         public readonly int $mode = InputOption::VALUE_NONE,
25
-        public readonly \Closure|array $suggestedValues = []
26
-    ) {
25
+        public readonly \Closure | array $suggestedValues = []
26
+    ){
27 27
     }
28 28
 }
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 1 patch
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.
src/Console/src/Command.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     protected function execute(InputInterface $input, OutputInterface $output): int
77 77
     {
78
-        if ($this->container === null) {
78
+        if ($this->container === null){
79 79
             throw new ScopeException('Container is not set');
80 80
         }
81 81
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $core = $this->buildCore();
85 85
 
86
-        try {
86
+        try{
87 87
             [$this->input, $this->output] = [$this->prepareInput($input), $this->prepareOutput($input, $output)];
88 88
 
89 89
             $this->eventDispatcher?->dispatch(new CommandStarting($this, $this->input, $this->output));
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             $this->eventDispatcher?->dispatch(new CommandFinished($this, $code, $this->input, $this->output));
99 99
 
100 100
             return $code;
101
-        } finally {
101
+        }finally{
102 102
             [$this->input, $this->output] = [null, null];
103 103
         }
104 104
     }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
         $interceptableCore = new InterceptableCore($core, $this->eventDispatcher);
111 111
 
112
-        foreach ($this->interceptors as $interceptor) {
112
+        foreach ($this->interceptors as $interceptor){
113 113
             $interceptableCore->addInterceptor($this->container->get($interceptor));
114 114
         }
115 115
         $interceptableCore->addInterceptor($this->container->get(AttributeInterceptor::class));
Please login to merge, or discard this patch.