From eb373c74643a68d8d439dcf8ec766d5b5799d3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pluchino?= Date: Wed, 18 Jan 2017 13:42:27 +0100 Subject: [PATCH] Optimize imports --- Composer/ScriptHandler.php | 2 +- FxpAssetPlugin.php | 2 +- Repository/VcsPackageFilter.php | 4 ++-- Tests/Composer/ScriptHandlerTest.php | 2 +- Tests/Installer/BowerInstallerTest.php | 8 ++++---- Tests/Repository/AbstractAssetsRepositoryTest.php | 2 +- Tests/Repository/AssetVcsRepositoryTest.php | 2 +- Tests/Repository/Vcs/GitBitbucketDriverTest.php | 2 +- Tests/Repository/Vcs/GitDriverTest.php | 2 +- Tests/Repository/Vcs/GitHubDriverTest.php | 4 ++-- Tests/Repository/Vcs/HgBitbucketDriverTest.php | 2 +- Tests/Repository/Vcs/HgDriverTest.php | 2 +- Tests/Repository/Vcs/SvnDriverTest.php | 2 +- Util/AssetPlugin.php | 2 +- 14 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Composer/ScriptHandler.php b/Composer/ScriptHandler.php index 8f88b05d..805472d3 100644 --- a/Composer/ScriptHandler.php +++ b/Composer/ScriptHandler.php @@ -14,8 +14,8 @@ use Composer\DependencyResolver\Operation\InstallOperation; use Composer\DependencyResolver\Operation\OperationInterface; use Composer\DependencyResolver\Operation\UpdateOperation; -use Composer\Package\PackageInterface; use Composer\Installer\PackageEvent; +use Composer\Package\PackageInterface; use Fxp\Composer\AssetPlugin\Assets; use Fxp\Composer\AssetPlugin\Installer\IgnoreFactory; diff --git a/FxpAssetPlugin.php b/FxpAssetPlugin.php index 4d36b1bf..929b503d 100644 --- a/FxpAssetPlugin.php +++ b/FxpAssetPlugin.php @@ -24,8 +24,8 @@ use Composer\Repository\RepositoryInterface; use Composer\Repository\RepositoryManager; use Fxp\Composer\AssetPlugin\Event\VcsRepositoryEvent; -use Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter; use Fxp\Composer\AssetPlugin\Repository\Util; +use Fxp\Composer\AssetPlugin\Repository\VcsPackageFilter; use Fxp\Composer\AssetPlugin\Util\AssetPlugin; /** diff --git a/Repository/VcsPackageFilter.php b/Repository/VcsPackageFilter.php index d3621ffa..bc78f606 100644 --- a/Repository/VcsPackageFilter.php +++ b/Repository/VcsPackageFilter.php @@ -13,12 +13,12 @@ use Composer\Installer\InstallationManager; use Composer\Package\Link; +use Composer\Package\Loader\ArrayLoader; use Composer\Package\Package; use Composer\Package\PackageInterface; use Composer\Package\RootPackageInterface; -use Composer\Package\Loader\ArrayLoader; -use Composer\Semver\Constraint\MultiConstraint; use Composer\Repository\InstalledFilesystemRepository; +use Composer\Semver\Constraint\MultiConstraint; use Fxp\Composer\AssetPlugin\Package\Version\VersionParser; use Fxp\Composer\AssetPlugin\Type\AssetTypeInterface; diff --git a/Tests/Composer/ScriptHandlerTest.php b/Tests/Composer/ScriptHandlerTest.php index 560f8865..d5558557 100644 --- a/Tests/Composer/ScriptHandlerTest.php +++ b/Tests/Composer/ScriptHandlerTest.php @@ -18,9 +18,9 @@ use Composer\DependencyResolver\PolicyInterface; use Composer\DependencyResolver\Pool; use Composer\DependencyResolver\Request; +use Composer\Installer\PackageEvent; use Composer\IO\IOInterface; use Composer\Package\PackageInterface; -use Composer\Installer\PackageEvent; use Composer\Repository\CompositeRepository; use Fxp\Composer\AssetPlugin\Composer\ScriptHandler; diff --git a/Tests/Installer/BowerInstallerTest.php b/Tests/Installer/BowerInstallerTest.php index 36ed412c..caa793c6 100644 --- a/Tests/Installer/BowerInstallerTest.php +++ b/Tests/Installer/BowerInstallerTest.php @@ -11,16 +11,16 @@ namespace Fxp\Composer\AssetPlugin\Tests\Installer; +use Composer\Composer; +use Composer\Config; use Composer\Downloader\DownloadManager; use Composer\IO\IOInterface; -use Composer\Package\PackageInterface; use Composer\Package\Package; +use Composer\Package\PackageInterface; use Composer\Package\RootPackageInterface; use Composer\Repository\InstalledRepositoryInterface; -use Composer\Util\Filesystem; use Composer\TestCase; -use Composer\Composer; -use Composer\Config; +use Composer\Util\Filesystem; use Fxp\Composer\AssetPlugin\Installer\BowerInstaller; use Fxp\Composer\AssetPlugin\Type\AssetTypeInterface; use Fxp\Composer\AssetPlugin\Util\AssetPlugin; diff --git a/Tests/Repository/AbstractAssetsRepositoryTest.php b/Tests/Repository/AbstractAssetsRepositoryTest.php index 63afd0fc..a6e1ffd0 100644 --- a/Tests/Repository/AbstractAssetsRepositoryTest.php +++ b/Tests/Repository/AbstractAssetsRepositoryTest.php @@ -11,11 +11,11 @@ namespace Fxp\Composer\AssetPlugin\Tests\Repository; +use Composer\Config; use Composer\DependencyResolver\Pool; use Composer\Downloader\TransportException; use Composer\EventDispatcher\EventDispatcher; use Composer\IO\IOInterface; -use Composer\Config; use Composer\Repository\RepositoryManager; use Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository; use Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository; diff --git a/Tests/Repository/AssetVcsRepositoryTest.php b/Tests/Repository/AssetVcsRepositoryTest.php index ddecaf80..d8c5ca0b 100644 --- a/Tests/Repository/AssetVcsRepositoryTest.php +++ b/Tests/Repository/AssetVcsRepositoryTest.php @@ -11,8 +11,8 @@ namespace Fxp\Composer\AssetPlugin\Tests\Repository; -use Composer\EventDispatcher\EventDispatcher; use Composer\Config; +use Composer\EventDispatcher\EventDispatcher; use Composer\Package\AliasPackage; use Composer\Package\CompletePackage; use Composer\Package\PackageInterface; diff --git a/Tests/Repository/Vcs/GitBitbucketDriverTest.php b/Tests/Repository/Vcs/GitBitbucketDriverTest.php index 141e88bc..52cd784e 100644 --- a/Tests/Repository/Vcs/GitBitbucketDriverTest.php +++ b/Tests/Repository/Vcs/GitBitbucketDriverTest.php @@ -11,10 +11,10 @@ namespace Fxp\Composer\AssetPlugin\Tests\Repository\Vcs; +use Composer\Config; use Composer\Downloader\TransportException; use Composer\IO\IOInterface; use Composer\Util\Filesystem; -use Composer\Config; use Composer\Util\RemoteFilesystem; use Fxp\Composer\AssetPlugin\Repository\Vcs\GitBitbucketDriver; diff --git a/Tests/Repository/Vcs/GitDriverTest.php b/Tests/Repository/Vcs/GitDriverTest.php index 9db0002f..9ebda6aa 100644 --- a/Tests/Repository/Vcs/GitDriverTest.php +++ b/Tests/Repository/Vcs/GitDriverTest.php @@ -11,9 +11,9 @@ namespace Fxp\Composer\AssetPlugin\Tests\Repository\Vcs; +use Composer\Config; use Composer\IO\IOInterface; use Composer\Util\Filesystem; -use Composer\Config; use Composer\Util\ProcessExecutor; use Fxp\Composer\AssetPlugin\Repository\Vcs\GitDriver; diff --git a/Tests/Repository/Vcs/GitHubDriverTest.php b/Tests/Repository/Vcs/GitHubDriverTest.php index 64deeeae..f1b866af 100644 --- a/Tests/Repository/Vcs/GitHubDriverTest.php +++ b/Tests/Repository/Vcs/GitHubDriverTest.php @@ -12,11 +12,11 @@ namespace Fxp\Composer\AssetPlugin\Tests\Repository\Vcs; use Composer\Cache; +use Composer\Config; +use Composer\Config\ConfigSourceInterface; use Composer\Downloader\TransportException; use Composer\IO\IOInterface; use Composer\Util\Filesystem; -use Composer\Config; -use Composer\Config\ConfigSourceInterface; use Composer\Util\ProcessExecutor; use Composer\Util\RemoteFilesystem; use Fxp\Composer\AssetPlugin\Repository\Vcs\GitHubDriver; diff --git a/Tests/Repository/Vcs/HgBitbucketDriverTest.php b/Tests/Repository/Vcs/HgBitbucketDriverTest.php index 01066260..f59d8b9b 100644 --- a/Tests/Repository/Vcs/HgBitbucketDriverTest.php +++ b/Tests/Repository/Vcs/HgBitbucketDriverTest.php @@ -11,10 +11,10 @@ namespace Fxp\Composer\AssetPlugin\Tests\Repository\Vcs; +use Composer\Config; use Composer\Downloader\TransportException; use Composer\IO\IOInterface; use Composer\Util\Filesystem; -use Composer\Config; use Composer\Util\RemoteFilesystem; use Fxp\Composer\AssetPlugin\Repository\Vcs\HgBitbucketDriver; diff --git a/Tests/Repository/Vcs/HgDriverTest.php b/Tests/Repository/Vcs/HgDriverTest.php index 8cad4e6a..10bccaac 100644 --- a/Tests/Repository/Vcs/HgDriverTest.php +++ b/Tests/Repository/Vcs/HgDriverTest.php @@ -11,9 +11,9 @@ namespace Fxp\Composer\AssetPlugin\Tests\Repository\Vcs; +use Composer\Config; use Composer\IO\IOInterface; use Composer\Util\Filesystem; -use Composer\Config; use Composer\Util\ProcessExecutor; use Fxp\Composer\AssetPlugin\Repository\Vcs\HgDriver; diff --git a/Tests/Repository/Vcs/SvnDriverTest.php b/Tests/Repository/Vcs/SvnDriverTest.php index 3bbe3dd7..ed403e45 100644 --- a/Tests/Repository/Vcs/SvnDriverTest.php +++ b/Tests/Repository/Vcs/SvnDriverTest.php @@ -11,9 +11,9 @@ namespace Fxp\Composer\AssetPlugin\Tests\Repository\Vcs; +use Composer\Config; use Composer\IO\IOInterface; use Composer\Util\Filesystem; -use Composer\Config; use Composer\Util\ProcessExecutor; use Fxp\Composer\AssetPlugin\Repository\Vcs\SvnDriver; diff --git a/Util/AssetPlugin.php b/Util/AssetPlugin.php index 34798f23..b6af61ed 100644 --- a/Util/AssetPlugin.php +++ b/Util/AssetPlugin.php @@ -14,8 +14,8 @@ use Composer\Composer; use Composer\IO\IOInterface; use Composer\Package\Package; -use Composer\Repository\RepositoryManager; use Composer\Package\PackageInterface; +use Composer\Repository\RepositoryManager; use Fxp\Composer\AssetPlugin\Assets; use Fxp\Composer\AssetPlugin\Installer\AssetInstaller; use Fxp\Composer\AssetPlugin\Installer\BowerInstaller;