@@ -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,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,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 |
@@ -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 |