@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | * specific formats and therefore should not be kept within the Command class. |
| 118 | 118 | * |
| 119 | 119 | * @param Command $command The Command to provide the synopsis for. |
| 120 | - * @return mixed |
|
| 120 | + * @return string |
|
| 121 | 121 | */ |
| 122 | 122 | public function getCommandSynopsis(Command $command, array $options = null) |
| 123 | 123 | { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * |
| 142 | 142 | * @param definitions\Options $definitions The Input Option Definitions to provide a synopsis for. |
| 143 | 143 | * @param array $options Additional options to be considered by the Descriptor. |
| 144 | - * @return mixed |
|
| 144 | + * @return string |
|
| 145 | 145 | */ |
| 146 | 146 | public function getInputOptionsSynopsis(definitions\Options $definitions, array $options = null) |
| 147 | 147 | { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @param input\Option $definition The Input Option to provide a synopsis for. |
| 171 | 171 | * @param array $options Additional options to be considered by the Descriptor. |
| 172 | - * @return mixed |
|
| 172 | + * @return string |
|
| 173 | 173 | */ |
| 174 | 174 | public function getInputOptionSynopsis(input\Option $definition, array $options = null) |
| 175 | 175 | { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * |
| 190 | 190 | * @param definitions\Arguments $definitions The Input Argument Definitions to provide a synopsis for. |
| 191 | 191 | * @param array $options Additional options to be considered by the Descriptor. |
| 192 | - * @return mixed |
|
| 192 | + * @return string |
|
| 193 | 193 | */ |
| 194 | 194 | public function getInputArgumentsSynopsis(definitions\Arguments $definitions, array $options = null) |
| 195 | 195 | { |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * |
| 213 | 213 | * @param input\Argument $definition The Input Argument to provide a synopsis for. |
| 214 | 214 | * @param array $options Additional options to be considered by the Descriptor. |
| 215 | - * @return mixed |
|
| 215 | + * @return string |
|
| 216 | 216 | */ |
| 217 | 217 | public function getInputArgumentSynopsis(input\Argument $definition, array $options = null) |
| 218 | 218 | { |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $output .= ' [--] '; |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | - return $output . $this->getInputArgumentsSynopsis($inputArguments, $options); |
|
| 136 | + return $output.$this->getInputArgumentsSynopsis($inputArguments, $options); |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - return $out . $this->apply(substr($text, $offset), $decorated); |
|
| 101 | + return $out.$this->apply(substr($text, $offset), $decorated); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | * @param bool $opening Whether it was an opening tag. |
| 146 | 146 | * @return interfaces\Style The Style matching the tag, if applicable. |
| 147 | 147 | */ |
| 148 | - protected function handleFormattingTag(string $tag, bool $opening) : ?interfaces\Style |
|
| 148 | + protected function handleFormattingTag(string $tag, bool $opening) : ? interfaces\Style |
|
| 149 | 149 | { |
| 150 | 150 | // First attempt to grab a Style matching the tag from our Collection. If none is found, |
| 151 | 151 | // see if it's an inline style. |