Test Failed
Pull Request — master (#902)
by butschster
08:55
created
src/Scaffolder/src/Declaration/BootloaderDeclaration.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         ?string $comment = null,
22 22
         ?string $namespace = null,
23 23
         private readonly bool $isDomain = false,
24
-    ) {
24
+    ){
25 25
         parent::__construct($config, $name, $comment, $namespace);
26 26
     }
27 27
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $this->class->addConstant('SINGLETONS', [])->setProtected();
42 42
         $this->class->addConstant('DEPENDENCIES', [])->setProtected();
43 43
 
44
-        if ($this->isDomain) {
44
+        if ($this->isDomain){
45 45
             $this->class->addConstant('INTERCEPTORS', [])->setProtected();
46 46
             $this->namespace->addUse(CoreInterface::class);
47 47
             $this->class->getConstant('SINGLETONS')->setValue([
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,8 @@
 block discarded – undo
41 41
         $this->class->addConstant('SINGLETONS', [])->setProtected();
42 42
         $this->class->addConstant('DEPENDENCIES', [])->setProtected();
43 43
 
44
-        if ($this->isDomain) {
44
+        if ($this->isDomain)
45
+        {
45 46
             $this->class->addConstant('INTERCEPTORS', [])->setProtected();
46 47
             $this->namespace->addUse(CoreInterface::class);
47 48
             $this->class->getConstant('SINGLETONS')->setValue([
Please login to merge, or discard this patch.
src/Scaffolder/tests/Command/CommandTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             'alias' => $alias,
25 25
             '--description' => 'My sample command description',
26 26
         ];
27
-        if ($alias === null) {
27
+        if ($alias === null){
28 28
             unset($input['alias']);
29 29
         }
30 30
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@
 block discarded – undo
24 24
             'alias' => $alias,
25 25
             '--description' => 'My sample command description',
26 26
         ];
27
-        if ($alias === null) {
27
+        if ($alias === null)
28
+        {
28 29
             unset($input['alias']);
29 30
         }
30 31
 
Please login to merge, or discard this patch.
src/Scaffolder/src/Command/CommandCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@
 block discarded – undo
48 48
             'alias' => $this->alias ?? \strtolower(\preg_replace('/(?<!^)[A-Z]/', ':$0', $this->name)),
49 49
         ]);
50 50
 
51
-        foreach ($this->arguments as $argument) {
51
+        foreach ($this->arguments as $argument){
52 52
             $declaration->addArgument($argument);
53 53
         }
54 54
 
55
-        foreach ($this->options as $option) {
55
+        foreach ($this->options as $option){
56 56
             $declaration->addOption($option);
57 57
         }
58 58
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,11 +48,13 @@
 block discarded – undo
48 48
             'alias' => $this->alias ?? \strtolower(\preg_replace('/(?<!^)[A-Z]/', ':$0', $this->name)),
49 49
         ]);
50 50
 
51
-        foreach ($this->arguments as $argument) {
51
+        foreach ($this->arguments as $argument)
52
+        {
52 53
             $declaration->addArgument($argument);
53 54
         }
54 55
 
55
-        foreach ($this->options as $option) {
56
+        foreach ($this->options as $option)
57
+        {
56 58
             $declaration->addOption($option);
57 59
         }
58 60
 
Please login to merge, or discard this patch.
src/Scaffolder/src/Declaration/CommandDeclaration.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         ?string $namespace = null,
23 23
         private readonly ?string $alias = null,
24 24
         private readonly ?string $description = null,
25
-    ) {
25
+    ){
26 26
         parent::__construct($config, $name, $comment, $namespace);
27 27
     }
28 28
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             'name' => $this->alias,
70 70
         ];
71 71
 
72
-        if ($this->description) {
72
+        if ($this->description){
73 73
             $commandDefinition['description'] = $this->description;
74 74
         }
75 75
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,8 @@
 block discarded – undo
69 69
             'name' => $this->alias,
70 70
         ];
71 71
 
72
-        if ($this->description) {
72
+        if ($this->description)
73
+        {
73 74
             $commandDefinition['description'] = $this->description;
74 75
         }
75 76
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 $this->info('Command logic is not implemented yet');
85 85
 
86 86
 return self::SUCCESS;
87
-PHP,
87
+php,
88 88
             );
89 89
     }
90 90
 }
Please login to merge, or discard this patch.