@@ -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. |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @return \ComponentManager\Moodle |
53 | 53 | */ |
54 | - protected function getMoodle($moodleDirectory=null) { |
|
54 | + protected function getMoodle($moodleDirectory = null) { |
|
55 | 55 | if ($this->moodle === null) { |
56 | 56 | $moodleDirectory = ($moodleDirectory === null) |
57 | 57 | ? PlatformUtil::workingDirectory() : $moodleDirectory; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @return \ComponentManager\Project\Project |
72 | 72 | */ |
73 | - protected function getProject($projectFilename=null, $projectLockFilename=null) { |
|
73 | + protected function getProject($projectFilename = null, $projectLockFilename = null) { |
|
74 | 74 | if ($this->project === null) { |
75 | 75 | if ($projectFilename === null) { |
76 | 76 | $projectFilename = PlatformUtil::workingDirectory() |