@@ -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 |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | */ |
228 | 228 | public function replaceRawAnnotations($annotationData) |
229 | 229 | { |
230 | - $this->otherAnnotations = new AnnotationData((array) $annotationData); |
|
230 | + $this->otherAnnotations = new AnnotationData((array)$annotationData); |
|
231 | 231 | return $this; |
232 | 232 | } |
233 | 233 | |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | // Convert to an array and merge if there are multiple |
310 | 310 | // instances of the same annotation defined. |
311 | 311 | if (isset($this->otherAnnotations[$name])) { |
312 | - $content = array_merge((array) $this->otherAnnotations[$name], (array)$content); |
|
312 | + $content = array_merge((array)$this->otherAnnotations[$name], (array)$content); |
|
313 | 313 | } |
314 | 314 | $this->otherAnnotations[$name] = $content; |
315 | 315 | } |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | $opts = $this->options()->getValues(); |
488 | 488 | foreach ($opts as $name => $defaultValue) { |
489 | 489 | if ($defaultValue === true) { |
490 | - $key = 'no-' . $name; |
|
490 | + $key = 'no-'.$name; |
|
491 | 491 | if (!array_key_exists($key, $opts)) { |
492 | 492 | $description = "Negate --$name option."; |
493 | 493 | $this->options()->add($key, $description, false); |
@@ -691,8 +691,8 @@ discard block |
||
691 | 691 | */ |
692 | 692 | protected function convertName($camel) |
693 | 693 | { |
694 | - $splitter="-"; |
|
695 | - $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
694 | + $splitter = "-"; |
|
695 | + $camel = preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
696 | 696 | $camel = preg_replace("/$splitter/", ':', $camel, 1); |
697 | 697 | return strtolower($camel); |
698 | 698 | } |