@@ -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') |
@@ -5,15 +5,12 @@ |
||
5 | 5 | |
6 | 6 | |
7 | 7 | use Composer\Command\BaseCommand; |
8 | -use Composer\Factory; |
|
9 | 8 | use Symfony\Component\Console\Input\InputArgument; |
10 | 9 | use Symfony\Component\Console\Input\InputInterface; |
11 | 10 | use Symfony\Component\Console\Input\InputOption; |
12 | 11 | use Symfony\Component\Console\Output\OutputInterface; |
13 | 12 | use TheCodingMachine\Discovery\Asset; |
14 | 13 | use TheCodingMachine\Discovery\AssetOperation; |
15 | -use TheCodingMachine\Discovery\AssetsBuilder; |
|
16 | -use TheCodingMachine\Discovery\AssetType; |
|
17 | 14 | use TheCodingMachine\Discovery\DiscoveryFileLoader; |
18 | 15 | use TheCodingMachine\Discovery\Dumper; |
19 | 16 |
@@ -5,13 +5,8 @@ |
||
5 | 5 | |
6 | 6 | |
7 | 7 | use Composer\Command\BaseCommand; |
8 | -use Composer\Factory; |
|
9 | -use Symfony\Component\Console\Input\InputArgument; |
|
10 | 8 | use Symfony\Component\Console\Input\InputInterface; |
11 | -use Symfony\Component\Console\Input\InputOption; |
|
12 | 9 | use Symfony\Component\Console\Output\OutputInterface; |
13 | -use TheCodingMachine\Discovery\AssetsBuilder; |
|
14 | -use TheCodingMachine\Discovery\AssetType; |
|
15 | 10 | use TheCodingMachine\Discovery\Dumper; |
16 | 11 | |
17 | 12 | class DumpCommand extends BaseCommand |
@@ -6,17 +6,13 @@ |
||
6 | 6 | |
7 | 7 | use Composer\Composer; |
8 | 8 | use Composer\EventDispatcher\EventSubscriberInterface; |
9 | -use Composer\Factory; |
|
10 | 9 | use Composer\IO\IOInterface; |
11 | -use Composer\Package\PackageInterface; |
|
12 | 10 | use Composer\Plugin\Capability\CommandProvider; |
13 | 11 | use Composer\Plugin\Capable; |
14 | 12 | use Composer\Plugin\PluginInterface; |
15 | 13 | use Composer\Script\Event; |
16 | 14 | use Composer\Script\ScriptEvents; |
17 | -use Symfony\Component\Filesystem\Filesystem; |
|
18 | 15 | use TheCodingMachine\Discovery\Commands\CommandProvider as DiscoveryCommandProvider; |
19 | -use TheCodingMachine\Discovery\Commands\DumpCommand; |
|
20 | 16 | |
21 | 17 | class DiscoveryPlugin implements PluginInterface, EventSubscriberInterface, Capable |
22 | 18 | { |
@@ -4,15 +4,11 @@ |
||
4 | 4 | namespace TheCodingMachine\Discovery\Commands; |
5 | 5 | |
6 | 6 | |
7 | -use Composer\Command\BaseCommand; |
|
8 | -use Composer\Factory; |
|
9 | 7 | use Symfony\Component\Console\Input\InputArgument; |
10 | 8 | use Symfony\Component\Console\Input\InputInterface; |
11 | -use Symfony\Component\Console\Input\InputOption; |
|
12 | 9 | use Symfony\Component\Console\Output\OutputInterface; |
13 | 10 | use TheCodingMachine\Discovery\Asset; |
14 | 11 | use TheCodingMachine\Discovery\AssetOperation; |
15 | -use TheCodingMachine\Discovery\AssetsBuilder; |
|
16 | 12 | use TheCodingMachine\Discovery\AssetType; |
17 | 13 | use TheCodingMachine\Discovery\DiscoveryFileLoader; |
18 | 14 | use TheCodingMachine\Discovery\Dumper; |