@@ -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); |
@@ -79,9 +79,9 @@ discard block |
||
79 | 79 | * @return string |
80 | 80 | */ |
81 | 81 | protected function getArchiveFilename(Component $component, |
82 | - ComponentVersion $version) { |
|
82 | + ComponentVersion $version) { |
|
83 | 83 | return sprintf(static::ARCHIVE_FILENAME_FORMAT, $component->getName(), |
84 | - $version->getVersion()); |
|
84 | + $version->getVersion()); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -93,18 +93,18 @@ discard block |
||
93 | 93 | * @return string |
94 | 94 | */ |
95 | 95 | protected function getTargetDirectory(Component $component, |
96 | - ComponentVersion $version) { |
|
96 | + ComponentVersion $version) { |
|
97 | 97 | return sprintf(static::TARGET_DIRECTORY_FORMAT, $component->getName(), |
98 | - $version->getVersion()); |
|
98 | + $version->getVersion()); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
102 | 102 | * @override \ComponentManager\PackageSource\PackageSource |
103 | 103 | */ |
104 | 104 | public function obtainPackage($tempDirectory, |
105 | - ResolvedComponentVersion $resolvedComponentVersion, |
|
106 | - Filesystem $filesystem, |
|
107 | - LoggerInterface $logger) { |
|
105 | + ResolvedComponentVersion $resolvedComponentVersion, |
|
106 | + Filesystem $filesystem, |
|
107 | + LoggerInterface $logger) { |
|
108 | 108 | $component = $resolvedComponentVersion->getComponent(); |
109 | 109 | $version = $resolvedComponentVersion->getVersion(); |
110 | 110 | $sources = $version->getSources(); |
@@ -170,8 +170,8 @@ discard block |
||
170 | 170 | * @throws InstallationFailureException |
171 | 171 | */ |
172 | 172 | protected function trySource($tempDirectory, LoggerInterface $logger, |
173 | - Component $component, ComponentVersion $version, |
|
174 | - ZipComponentSource $source) { |
|
173 | + Component $component, ComponentVersion $version, |
|
174 | + ZipComponentSource $source) { |
|
175 | 175 | $archiveFilename = $this->platform->joinPaths([ |
176 | 176 | $tempDirectory, |
177 | 177 | $this->getArchiveFilename($component, $version), |
@@ -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(); |