mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
php-cs-fixer magic
This commit is contained in:
parent
4ea9b33a6c
commit
1bd4ccbd54
90 changed files with 396 additions and 400 deletions
|
@ -15,8 +15,6 @@ namespace Composer\Repository;
|
|||
use Composer\Downloader\TransportException;
|
||||
use Composer\Repository\Vcs\VcsDriverInterface;
|
||||
use Composer\Package\Version\VersionParser;
|
||||
use Composer\Package\PackageInterface;
|
||||
use Composer\Package\AliasPackage;
|
||||
use Composer\Package\Loader\ArrayLoader;
|
||||
use Composer\IO\IOInterface;
|
||||
use Composer\Config;
|
||||
|
@ -58,6 +56,7 @@ class VcsRepository extends ArrayRepository
|
|||
$class = $this->drivers[$this->type];
|
||||
$driver = new $class($this->url, $this->io, $this->config);
|
||||
$driver->initialize();
|
||||
|
||||
return $driver;
|
||||
}
|
||||
|
||||
|
@ -65,6 +64,7 @@ class VcsRepository extends ArrayRepository
|
|||
if ($driver::supports($this->io, $this->url)) {
|
||||
$driver = new $driver($this->url, $this->io, $this->config);
|
||||
$driver->initialize();
|
||||
|
||||
return $driver;
|
||||
}
|
||||
}
|
||||
|
@ -73,6 +73,7 @@ class VcsRepository extends ArrayRepository
|
|||
if ($driver::supports($this->io, $this->url, true)) {
|
||||
$driver = new $driver($this->url, $this->io, $this->config);
|
||||
$driver->initialize();
|
||||
|
||||
return $driver;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue