@@ -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; |
@@ -32,6 +32,7 @@ discard block |
||
| 32 | 32 | * highest priority. |
| 33 | 33 | * |
| 34 | 34 | * If a context has already been added, its priority will not change. |
| 35 | + * @param string $name |
|
| 35 | 36 | */ |
| 36 | 37 | public function addContext($name, ConfigInterface $config) |
| 37 | 38 | { |
@@ -77,6 +78,9 @@ discard block |
||
| 77 | 78 | return isset($this->contexts[$name]); |
| 78 | 79 | } |
| 79 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $name |
|
| 83 | + */ |
|
| 80 | 84 | public function getContext($name) |
| 81 | 85 | { |
| 82 | 86 | if ($this->hasContext($name)) { |
@@ -158,6 +162,7 @@ discard block |
||
| 158 | 162 | |
| 159 | 163 | /** |
| 160 | 164 | * @inheritdoc |
| 165 | + * @param string $fn |
|
| 161 | 166 | */ |
| 162 | 167 | protected function unsupported($fn) |
| 163 | 168 | { |