@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Bluzman\Input; |
| 10 | 10 | use Bluzman\Command; |
| 11 | 11 | use Bluzman\Validation\Rules\DirectoryEmpty; |
| 12 | -use Respect; |
|
| 13 | 12 | use Respect\Validation\Validator as v; |
| 14 | 13 | use Symfony\Component\Console\Input\InputInterface; |
| 15 | 14 | use Symfony\Component\Console\Input\InputOption; |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | - * @param $fs |
|
| 52 | + * @param Filesystem $fs |
|
| 53 | 53 | */ |
| 54 | 54 | public function setFs($fs) |
| 55 | 55 | { |
@@ -105,8 +105,8 @@ |
||
| 105 | 105 | /** |
| 106 | 106 | * |
| 107 | 107 | * |
| 108 | - * @param $path |
|
| 109 | - * @param array $subfolders |
|
| 108 | + * @param string $path |
|
| 109 | + * @param string[] $subfolders |
|
| 110 | 110 | */ |
| 111 | 111 | protected function addSubFolders($path, array $subfolders = []) |
| 112 | 112 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | namespace Bluzman\Command\Init; |
| 8 | 8 | |
| 9 | 9 | use Bluzman\Command; |
| 10 | -use Respect; |
|
| 11 | 10 | use Respect\Validation\Validator as v; |
| 12 | 11 | use Symfony\Component\Console\Input\InputInterface; |
| 13 | 12 | use Symfony\Component\Console\Input\InputOption; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | $this->question("Please enter the " . trim(strtolower($defOption->getDescription()), ' .')) |
| 228 | 228 | ); |
| 229 | 229 | $question->setValidator( |
| 230 | - function ($value) use ($name, $output, $helper, $defOption) { |
|
| 230 | + function($value) use ($name, $output, $helper, $defOption) { |
|
| 231 | 231 | $defOption->validate($value); |
| 232 | 232 | |
| 233 | 233 | $this->getInput()->setOption($name, $value); |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | $this->question("Please enter the " . trim(strtolower($defArgument->getDescription()), ' .')) |
| 282 | 282 | ); |
| 283 | 283 | $question->setValidator( |
| 284 | - function ($value) use ($name, $output, $helper, $defArgument) { |
|
| 284 | + function($value) use ($name, $output, $helper, $defArgument) { |
|
| 285 | 285 | $defArgument->validate($value); |
| 286 | 286 | |
| 287 | 287 | $this->getInput()->setArgument($name, $value); |