@@ -145,7 +145,6 @@ |
||
145 | 145 | /** |
146 | 146 | * Evaluate one configuration item. |
147 | 147 | * |
148 | - * @param array $processed |
|
149 | 148 | * @param array $config |
150 | 149 | * @return array |
151 | 150 | */ |
@@ -28,7 +28,7 @@ |
||
28 | 28 | foreach ($settings as $setterMethod => $args) { |
29 | 29 | $fn = [$object, $setterMethod]; |
30 | 30 | if (is_callable($fn)) { |
31 | - $result = call_user_func_array($fn, (array)$args); |
|
31 | + $result = call_user_func_array($fn, (array) $args); |
|
32 | 32 | |
33 | 33 | // We require that $fn must only be used with setter methods. |
34 | 34 | // Setter methods are required to always return $this so that |
@@ -52,6 +52,9 @@ discard block |
||
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param \Symfony\Component\Console\Input\InputInterface $input |
|
57 | + */ |
|
55 | 58 | protected function injectConfigurationForGlobalOptions($input) |
56 | 59 | { |
57 | 60 | if (!$this->application) { |
@@ -66,6 +69,10 @@ discard block |
||
66 | 69 | return $this->injectConfigGroupIntoOptions($configGroup, $options, $input); |
67 | 70 | } |
68 | 71 | |
72 | + /** |
|
73 | + * @param null|\Symfony\Component\Console\Command\Command $command |
|
74 | + * @param \Symfony\Component\Console\Input\InputInterface $input |
|
75 | + */ |
|
69 | 76 | protected function injectConfigurationForCommand($command, $input) |
70 | 77 | { |
71 | 78 | $commandName = $command->getName(); |
@@ -78,6 +85,9 @@ discard block |
||
78 | 85 | return $this->injectConfigGroupIntoOptions($configGroup, $options, $input); |
79 | 86 | } |
80 | 87 | |
88 | + /** |
|
89 | + * @param ConfigFallback $configGroup |
|
90 | + */ |
|
81 | 91 | protected function injectConfigGroupIntoOptions($configGroup, $options, $input) |
82 | 92 | { |
83 | 93 | foreach ($options as $option => $inputOption) { |
@@ -97,6 +107,10 @@ discard block |
||
97 | 107 | } |
98 | 108 | } |
99 | 109 | |
110 | + /** |
|
111 | + * @param null|\Symfony\Component\Console\Command\Command $command |
|
112 | + * @param \Symfony\Component\Console\Input\InputInterface $input |
|
113 | + */ |
|
100 | 114 | protected function getHelpCommandTarget($command, $input) |
101 | 115 | { |
102 | 116 | if (($command->getName() != 'help') || (!isset($this->application))) { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Consolidation\Config\ConfigInterface; |
5 | 5 | use Consolidation\Config\Util\ConfigFallback; |
6 | - |
|
7 | 6 | use Symfony\Component\Console\ConsoleEvents; |
8 | 7 | use Symfony\Component\Console\Event\ConsoleCommandEvent; |
9 | 8 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |