@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * For internal use only; indicates that the function to be called |
42 | 42 | * should be passed an InputInterface &/or an OutputInterface. |
43 | - * @param booean $usesInputInterface |
|
43 | + * @param boolean $usesInputInterface |
|
44 | 44 | * @param boolean $usesOutputInterface |
45 | 45 | * @return self |
46 | 46 | */ |
@@ -151,6 +151,9 @@ discard block |
||
151 | 151 | return in_array($option, $this->specialDefaults); |
152 | 152 | } |
153 | 153 | |
154 | + /** |
|
155 | + * @param \Symfony\Component\Console\Input\InputDefinition $definition |
|
156 | + */ |
|
154 | 157 | public function cacheSpecialDefaults($definition) |
155 | 158 | { |
156 | 159 | foreach ($definition->getOptions() as $option => $inputOption) { |
@@ -136,7 +136,7 @@ |
||
136 | 136 | if ($value === true) { |
137 | 137 | // Check if the --no-* option exists. Note that none of the other |
138 | 138 | // alteration apply in the $value == true case, so we can exit early here. |
139 | - $negation_key = 'no-' . $option; |
|
139 | + $negation_key = 'no-'.$option; |
|
140 | 140 | return array_key_exists($negation_key, $options) && $options[$negation_key]; |
141 | 141 | } |
142 | 142 |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | // can never be commands. |
247 | 247 | $commandMethodNames = array_filter( |
248 | 248 | get_class_methods($classNameOrInstance) ?: [], |
249 | - function ($m) use ($classNameOrInstance) { |
|
249 | + function($m) use ($classNameOrInstance) { |
|
250 | 250 | $reflectionMethod = new \ReflectionMethod($classNameOrInstance, $m); |
251 | 251 | return !$reflectionMethod->isStatic() && !preg_match('#^_#', $m); |
252 | 252 | } |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | if (!static::isCommandOrHookMethod($commandInfo, $this->getIncludeAllPublicMethods())) { |
259 | 259 | $commandInfo->invalidate(); |
260 | 260 | } |
261 | - $commandInfoList[$commandMethodName] = $commandInfo; |
|
261 | + $commandInfoList[$commandMethodName] = $commandInfo; |
|
262 | 262 | } |
263 | 263 | } |
264 | 264 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | return $this->createSelectedCommandsFromClassInfo( |
280 | 280 | $commandInfoList, |
281 | 281 | $commandFileInstance, |
282 | - function ($commandInfo) use ($includeAllPublicMethods) { |
|
282 | + function($commandInfo) use ($includeAllPublicMethods) { |
|
283 | 283 | return static::isCommandMethod($commandInfo, $includeAllPublicMethods); |
284 | 284 | } |
285 | 285 | ); |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | { |
290 | 290 | $commandInfoList = $this->filterCommandInfoList($commandInfoList, $commandSelector); |
291 | 291 | return array_map( |
292 | - function ($commandInfo) use ($commandFileInstance) { |
|
292 | + function($commandInfo) use ($commandFileInstance) { |
|
293 | 293 | return $this->createCommand($commandInfo, $commandFileInstance); |
294 | 294 | }, |
295 | 295 | $commandInfoList |