@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | const HELP = <<<HELP |
| 35 | 35 | Refreshes cached package repository meta for all caching package repositories. |
| 36 | -HELP; |
|
| 36 | +help; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @override \Symfony\Component\Console\Command\Command |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * |
| 101 | 101 | * @return void |
| 102 | 102 | */ |
| 103 | - public function fetch($remote, $withTags=true) { |
|
| 103 | + public function fetch($remote, $withTags = true) { |
|
| 104 | 104 | $process = $this->getProcess(['fetch', $remote]); |
| 105 | 105 | $process->run(); |
| 106 | 106 | |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function __toString() { |
| 34 | 34 | return sprintf(static::MESSAGE_FORMAT, $this->getExceptionType(), |
| 35 | - $this->getExceptionCodeName(), $this->code, |
|
| 36 | - $this->message); |
|
| 35 | + $this->getExceptionCodeName(), $this->code, |
|
| 36 | + $this->message); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | // Error reporting |
| 12 | -ini_set('display_errors', 'on'); |
|
| 12 | +ini_set('display_errors', 'on'); |
|
| 13 | 13 | ini_set('error_reporting', E_ALL); |
| 14 | 14 | |
| 15 | 15 | // Set the default timezone if not already set |
@@ -39,9 +39,9 @@ |
||
| 39 | 39 | * @override \ComponentManager\PackageSource\PackageSource |
| 40 | 40 | */ |
| 41 | 41 | public function obtainPackage($tempDirectory, |
| 42 | - ResolvedComponentVersion $resolvedComponentVersion, |
|
| 43 | - Filesystem $filesystem, |
|
| 44 | - LoggerInterface $logger) { |
|
| 42 | + ResolvedComponentVersion $resolvedComponentVersion, |
|
| 43 | + Filesystem $filesystem, |
|
| 44 | + LoggerInterface $logger) { |
|
| 45 | 45 | $version = $resolvedComponentVersion->getVersion(); |
| 46 | 46 | $sources = $version->getSources(); |
| 47 | 47 | |
@@ -53,11 +53,11 @@ |
||
| 53 | 53 | $tempDirectory, |
| 54 | 54 | 'repo', |
| 55 | 55 | ]); |
| 56 | - $indexPath = $this->platform->joinPaths([ |
|
| 56 | + $indexPath = $this->platform->joinPaths([ |
|
| 57 | 57 | $tempDirectory, |
| 58 | 58 | 'index', |
| 59 | 59 | ]); |
| 60 | - $repositoryUri = $source->getRepositoryUri(); |
|
| 60 | + $repositoryUri = $source->getRepositoryUri(); |
|
| 61 | 61 | |
| 62 | 62 | $finalRef = $resolvedComponentVersion->getFinalVersion(); |
| 63 | 63 | $ref = $source->getRef(); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | const HELP = <<<HELP |
| 35 | 35 | Refreshes cached package repository meta for all caching package repositories. |
| 36 | -HELP; |
|
| 36 | +help; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @override \Symfony\Component\Console\Command\Command |
@@ -103,12 +103,12 @@ |
||
| 103 | 103 | |
| 104 | 104 | $tempDirectory = $this->platform->createTempDirectory(); |
| 105 | 105 | $archive = $tempDirectory |
| 106 | - . $this->platform->getDirectorySeparator() |
|
| 107 | - . 'moodle.zip'; |
|
| 106 | + . $this->platform->getDirectorySeparator() |
|
| 107 | + . 'moodle.zip'; |
|
| 108 | 108 | $destination = $tempDirectory |
| 109 | - . $this->platform->getDirectorySeparator() . 'moodle'; |
|
| 109 | + . $this->platform->getDirectorySeparator() . 'moodle'; |
|
| 110 | 110 | $projectLockFilename = $destination . $this->platform->getDirectorySeparator() |
| 111 | - . 'componentmgr.lock.json'; |
|
| 111 | + . 'componentmgr.lock.json'; |
|
| 112 | 112 | |
| 113 | 113 | $moodle = new Moodle($destination, $this->platform); |
| 114 | 114 | $project = $this->getProject($projectFilename, $projectLockFilename); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | const HELP = <<<HELP |
| 35 | 35 | Refreshes cached package repository meta for all caching package repositories. |
| 36 | -HELP; |
|
| 36 | +help; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @override \Symfony\Component\Console\Command\Command |
@@ -29,6 +29,7 @@ |
||
| 29 | 29 | * @param \Symfony\Component\Filesystem\Filesystem $filesystem |
| 30 | 30 | * @param \ComponentManager\Platform\Platform $platform |
| 31 | 31 | * @param \stdClass $options |
| 32 | + * @return void |
|
| 32 | 33 | */ |
| 33 | 34 | public function __construct(Filesystem $filesystem, Platform $platform, |
| 34 | 35 | stdClass $options); |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | use ComponentManager\ComponentSpecification; |
| 14 | 14 | use ComponentManager\ComponentVersion; |
| 15 | 15 | use ComponentManager\Platform\Platform; |
| 16 | -use stdClass; |
|
| 17 | 16 | use Symfony\Component\Filesystem\Filesystem; |
| 17 | +use stdClass; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Package repository interface. |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | namespace ComponentManager\Platform; |
| 12 | 12 | |
| 13 | 13 | use ComponentManager\Exception\PlatformException; |
| 14 | -use Symfony\Component\DependencyInjection\Definition; |
|
| 15 | 14 | |
| 16 | 15 | class PlatformFactory { |
| 17 | 16 | /** |