@@ -267,7 +267,7 @@ |
||
| 267 | 267 | // "Robo\\RoboPlugin\\":"tests/robo-command-plugin" |
| 268 | 268 | $path = dirname(__DIR__) . '/robo-command-plugin'; |
| 269 | 269 | $prefixes = [ |
| 270 | - 'Robo\\RoboPlugin\\' => [ $path ], |
|
| 270 | + 'Robo\\RoboPlugin\\' => [$path], |
|
| 271 | 271 | ]; |
| 272 | 272 | include("$path/Commands/RoboTestPluginCommands.php"); |
| 273 | 273 | |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace Robo\Example\RoboPlugin; |
| 3 | 3 | |
| 4 | 4 | use Robo\Result; |
| 5 | - |
|
| 6 | 5 | use Consolidation\AnnotatedCommand\CommandData; |
| 7 | 6 | use Consolidation\OutputFormatters\Options\FormatterOptions; |
| 8 | 7 | use Consolidation\OutputFormatters\StructuredData\RowsOfFields; |
@@ -64,6 +64,9 @@ discard block |
||
| 64 | 64 | $this->dir = getcwd(); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $errorType |
|
| 69 | + */ |
|
| 67 | 70 | protected function errorCondtion($msg, $errorType) |
| 68 | 71 | { |
| 69 | 72 | $this->errorConditions[$msg] = $errorType; |
@@ -104,7 +107,7 @@ discard block |
||
| 104 | 107 | } |
| 105 | 108 | |
| 106 | 109 | /** |
| 107 | - * @param array $argv |
|
| 110 | + * @param string[] $argv |
|
| 108 | 111 | * @param null|string $appName |
| 109 | 112 | * @param null|string $appVersion |
| 110 | 113 | * @param null|\Symfony\Component\Console\Output\OutputInterface $output |
@@ -194,6 +197,9 @@ discard block |
||
| 194 | 197 | return $this; |
| 195 | 198 | } |
| 196 | 199 | |
| 200 | + /** |
|
| 201 | + * @param string $namespacePattern |
|
| 202 | + */ |
|
| 197 | 203 | public function setCommandFilePluginPattern($namespacePattern) |
| 198 | 204 | { |
| 199 | 205 | $this->namespacePattern = $namespacePattern; |