@@ -62,6 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * {@inheritdoc} |
| 65 | + * @param string $class |
|
| 65 | 66 | */ |
| 66 | 67 | public function getFile($class) |
| 67 | 68 | { |
@@ -70,7 +71,7 @@ discard block |
||
| 70 | 71 | |
| 71 | 72 | /** |
| 72 | 73 | * @param $directories |
| 73 | - * @param $pattern |
|
| 74 | + * @param string $pattern |
|
| 74 | 75 | * |
| 75 | 76 | * @return \Symfony\Component\Finder\Finder |
| 76 | 77 | */ |
@@ -85,9 +86,9 @@ discard block |
||
| 85 | 86 | } |
| 86 | 87 | |
| 87 | 88 | /** |
| 88 | - * @param $path |
|
| 89 | + * @param string $path |
|
| 89 | 90 | * |
| 90 | - * @return mixed |
|
| 91 | + * @return string |
|
| 91 | 92 | */ |
| 92 | 93 | protected function convertPathToNamespace($path) |
| 93 | 94 | { |
@@ -95,6 +96,7 @@ discard block |
||
| 95 | 96 | } |
| 96 | 97 | |
| 97 | 98 | /** |
| 99 | + * @param string $namespace |
|
| 98 | 100 | * @return string |
| 99 | 101 | */ |
| 100 | 102 | public function convertNamespaceToPath($namespace) |
@@ -348,6 +348,9 @@ |
||
| 348 | 348 | { |
| 349 | 349 | protected $message; |
| 350 | 350 | |
| 351 | + /** |
|
| 352 | + * @param string $message |
|
| 353 | + */ |
|
| 351 | 354 | public function __construct($message) |
| 352 | 355 | { |
| 353 | 356 | $this->message = $message; |
@@ -79,6 +79,9 @@ discard block |
||
| 79 | 79 | $this->dir = getcwd(); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $errorType |
|
| 84 | + */ |
|
| 82 | 85 | protected function errorCondition($msg, $errorType) |
| 83 | 86 | { |
| 84 | 87 | $this->errorConditions[$msg] = $errorType; |
@@ -126,7 +129,7 @@ discard block |
||
| 126 | 129 | } |
| 127 | 130 | |
| 128 | 131 | /** |
| 129 | - * @param array $argv |
|
| 132 | + * @param string[] $argv |
|
| 130 | 133 | * @param null|string $appName |
| 131 | 134 | * @param null|string $appVersion |
| 132 | 135 | * @param null|\Symfony\Component\Console\Output\OutputInterface $output |
@@ -147,6 +150,7 @@ discard block |
||
| 147 | 150 | |
| 148 | 151 | /** |
| 149 | 152 | * Get a list of locations where config files may be loaded |
| 153 | + * @param string $userConfig |
|
| 150 | 154 | * @return string[] |
| 151 | 155 | */ |
| 152 | 156 | protected function getConfigFilePaths($userConfig) |
@@ -162,7 +166,7 @@ discard block |
||
| 162 | 166 | * @param null|\Symfony\Component\Console\Input\InputInterface $input |
| 163 | 167 | * @param null|\Symfony\Component\Console\Output\OutputInterface $output |
| 164 | 168 | * @param null|\Robo\Application $app |
| 165 | - * @param array[] $commandFiles |
|
| 169 | + * @param null|string $commandFiles |
|
| 166 | 170 | * @param null|ClassLoader $classLoader |
| 167 | 171 | * |
| 168 | 172 | * @return int |
@@ -258,9 +262,9 @@ discard block |
||
| 258 | 262 | } |
| 259 | 263 | |
| 260 | 264 | /** |
| 261 | - * @param $relativeNamespace |
|
| 265 | + * @param string $relativeNamespace |
|
| 262 | 266 | * |
| 263 | - * @return array|string[] |
|
| 267 | + * @return string[] |
|
| 264 | 268 | */ |
| 265 | 269 | protected function discoverCommandClasses($relativeNamespace) |
| 266 | 270 | { |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * @command cat |
| 14 | - * @param string $file |
|
| 15 | 14 | * @default $file - |
| 16 | 15 | */ |
| 17 | 16 | public function cat(InputInterface $input) |
@@ -45,6 +45,9 @@ |
||
| 45 | 45 | return $result ?: $this->parentOutput(); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @return InputInterface |
|
| 50 | + */ |
|
| 48 | 51 | protected function input() |
| 49 | 52 | { |
| 50 | 53 | $result = null; |
@@ -94,6 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * Create a config object and load it from the provided paths. |
| 97 | + * @param string[] $paths |
|
| 97 | 98 | */ |
| 98 | 99 | public static function createConfiguration($paths) |
| 99 | 100 | { |
@@ -104,6 +105,7 @@ discard block |
||
| 104 | 105 | |
| 105 | 106 | /** |
| 106 | 107 | * Use a simple config loader to load configuration values from specified paths |
| 108 | + * @param Config\Config $config |
|
| 107 | 109 | */ |
| 108 | 110 | public static function loadConfiguration($paths, $config = null) |
| 109 | 111 | { |
@@ -155,6 +157,10 @@ discard block |
||
| 155 | 157 | return $container; |
| 156 | 158 | } |
| 157 | 159 | |
| 160 | + /** |
|
| 161 | + * @param Application $app |
|
| 162 | + * @param Container $container |
|
| 163 | + */ |
|
| 158 | 164 | public static function configureApplication($app, $container) |
| 159 | 165 | { |
| 160 | 166 | // Set the application dispatcher |
@@ -336,7 +342,7 @@ discard block |
||
| 336 | 342 | * @param string $id |
| 337 | 343 | * The ID of the service to retrieve. |
| 338 | 344 | * |
| 339 | - * @return mixed |
|
| 345 | + * @return \Symfony\Component\Console\Output\OutputInterface |
|
| 340 | 346 | * The specified service. |
| 341 | 347 | */ |
| 342 | 348 | public static function service($id) |
@@ -90,6 +90,9 @@ |
||
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | + /** |
|
| 94 | + * @param OutputInterface $output |
|
| 95 | + */ |
|
| 93 | 96 | protected function createLogger($output) |
| 94 | 97 | { |
| 95 | 98 | return new \Robo\Log\RoboLogger($output); |