@@ -65,7 +65,7 @@ |
||
65 | 65 | * Similar to a usort except that if 2 priorities are equal, order is preserved. |
66 | 66 | * Shamelessly copied from http://php.net/manual/fr/function.usort.php#38827 |
67 | 67 | * |
68 | - * @param $array |
|
68 | + * @param Asset[] $array |
|
69 | 69 | * @param string $cmp_function |
70 | 70 | */ |
71 | 71 | private function stableSort(&$array, $cmp_function = 'strcmp') |
@@ -18,9 +18,9 @@ |
||
18 | 18 | protected function configure() |
19 | 19 | { |
20 | 20 | $this->setName('discovery:list') |
21 | - ->setDescription('List the values of the asset type passed in parameter (or list all asset types if no parameter is passed)') |
|
22 | - ->addArgument('asset-type', InputArgument::OPTIONAL, 'The asset type to list') |
|
23 | - ->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt or json)', 'txt'); |
|
21 | + ->setDescription('List the values of the asset type passed in parameter (or list all asset types if no parameter is passed)') |
|
22 | + ->addArgument('asset-type', InputArgument::OPTIONAL, 'The asset type to list') |
|
23 | + ->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt or json)', 'txt'); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -19,7 +19,7 @@ |
||
19 | 19 | protected function configure() |
20 | 20 | { |
21 | 21 | $this->setName('discovery:dump') |
22 | - ->setDescription('Regenerates the Discovery class (in the .discovery folder). This is automatically triggered on install and update.'); |
|
22 | + ->setDescription('Regenerates the Discovery class (in the .discovery folder). This is automatically triggered on install and update.'); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -22,10 +22,10 @@ |
||
22 | 22 | protected function configure() |
23 | 23 | { |
24 | 24 | $this->setName('discovery:add') |
25 | - ->setDescription('Add an asset') |
|
26 | - ->addArgument('asset-type', InputArgument::REQUIRED, 'The asset type') |
|
27 | - ->addArgument('value', InputArgument::REQUIRED, 'The asset to add') |
|
28 | - ->addOption('priority', 'p', InputOption::VALUE_REQUIRED, 'The priority', 0.0); |
|
25 | + ->setDescription('Add an asset') |
|
26 | + ->addArgument('asset-type', InputArgument::REQUIRED, 'The asset type') |
|
27 | + ->addArgument('value', InputArgument::REQUIRED, 'The asset to add') |
|
28 | + ->addOption('priority', 'p', InputOption::VALUE_REQUIRED, 'The priority', 0.0); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -22,9 +22,9 @@ |
||
22 | 22 | protected function configure() |
23 | 23 | { |
24 | 24 | $this->setName('discovery:remove') |
25 | - ->setDescription('Remove an asset') |
|
26 | - ->addArgument('asset-type', InputArgument::REQUIRED, 'The asset type') |
|
27 | - ->addArgument('value', InputArgument::REQUIRED, 'The asset to remove'); |
|
25 | + ->setDescription('Remove an asset') |
|
26 | + ->addArgument('asset-type', InputArgument::REQUIRED, 'The asset type') |
|
27 | + ->addArgument('value', InputArgument::REQUIRED, 'The asset to remove'); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -42,7 +42,6 @@ |
||
42 | 42 | * Find discovery.json files in the passed repository and builds an asset type. |
43 | 43 | * |
44 | 44 | * @param RepositoryInterface $repository |
45 | - * @param RootPackageInterface $rootPackage |
|
46 | 45 | * @return array|AssetType[] |
47 | 46 | */ |
48 | 47 | public function findAssetTypes(RepositoryInterface $repository) : array |