@@ -16,8 +16,8 @@ |
||
| 16 | 16 | use ComponentManager\VersionControl\Git\Command\Command; |
| 17 | 17 | use ComponentManager\VersionControl\Git\Command\FetchCommand; |
| 18 | 18 | use ComponentManager\VersionControl\Git\Command\InitCommand; |
| 19 | -use ComponentManager\VersionControl\Git\Command\RevParseCommand; |
|
| 20 | 19 | use ComponentManager\VersionControl\Git\Command\RemoteAddCommand; |
| 20 | +use ComponentManager\VersionControl\Git\Command\RevParseCommand; |
|
| 21 | 21 | use Symfony\Component\Process\Process; |
| 22 | 22 | use Symfony\Component\Process\ProcessBuilder; |
| 23 | 23 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * @param string $directory |
| 61 | 61 | * @param integer|null $timeout |
| 62 | 62 | */ |
| 63 | - public function __construct($gitExecutable, $directory, $timeout=60) { |
|
| 63 | + public function __construct($gitExecutable, $directory, $timeout = 60) { |
|
| 64 | 64 | $this->gitExecutable = $gitExecutable; |
| 65 | 65 | $this->timeout = $timeout; |
| 66 | 66 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * |
| 96 | 96 | * @throws VersionControlException |
| 97 | 97 | */ |
| 98 | - public function runCommand(Command $command, $exceptionCode=null) { |
|
| 98 | + public function runCommand(Command $command, $exceptionCode = null) { |
|
| 99 | 99 | $process = $this->createProcess($command->getCommandLine()); |
| 100 | 100 | $process->run(); |
| 101 | 101 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @codeCoverageIgnore |
| 171 | 171 | */ |
| 172 | - public function fetch($remote=null) { |
|
| 172 | + public function fetch($remote = null) { |
|
| 173 | 173 | $command = new FetchCommand($remote); |
| 174 | 174 | return $this->runCommand( |
| 175 | 175 | $command, VersionControlException::CODE_FETCH_FAILED); |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | * |
| 187 | 187 | * @codeCoverageIgnore |
| 188 | 188 | */ |
| 189 | - public function fetchTags($remote=null) { |
|
| 189 | + public function fetchTags($remote = null) { |
|
| 190 | 190 | $command = new FetchCommand($remote); |
| 191 | 191 | $command->setTags(true); |
| 192 | 192 | return $this->runCommand( |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | use ComponentManager\HttpClient; |
| 18 | 18 | use ComponentManager\Platform\Platform; |
| 19 | 19 | use Psr\Log\LoggerInterface; |
| 20 | -use stdClass; |
|
| 21 | 20 | use Symfony\Component\Filesystem\Filesystem; |
| 21 | +use stdClass; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Package repository interface. |