@@ -72,6 +72,9 @@ |
||
| 72 | 72 | $options->setWidth($width); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | + /** |
|
| 76 | + * @return CommandData |
|
| 77 | + */ |
|
| 75 | 78 | protected function getTerminalWidth() |
| 76 | 79 | { |
| 77 | 80 | // Don't wrap if wrapping has been disabled. |
@@ -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 | |