@@ -21,7 +21,7 @@ discard block |
||
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 |
||
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([ |
@@ -41,7 +41,8 @@ |
||
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([ |
@@ -24,7 +24,7 @@ |
||
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 |
@@ -24,7 +24,8 @@ |
||
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 |
@@ -48,11 +48,11 @@ |
||
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 |
@@ -48,11 +48,13 @@ |
||
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 |
@@ -22,7 +22,7 @@ discard block |
||
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 |
||
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 |
@@ -69,7 +69,8 @@ |
||
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 |
@@ -84,7 +84,7 @@ |
||
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 | } |