@@ -118,7 +118,7 @@ |
||
118 | 118 | * |
119 | 119 | * @param string $property |
120 | 120 | * |
121 | - * @return mixed |
|
121 | + * @return string |
|
122 | 122 | * |
123 | 123 | * @throws \OutOfBoundsException |
124 | 124 | */ |
@@ -71,7 +71,7 @@ |
||
71 | 71 | * @param \ComponentManager\Project\ProjectLockFile $projectLockFile |
72 | 72 | * @param \ComponentManager\PackageRepository\PackageRepositoryFactory $packageRepositoryFactory |
73 | 73 | * @param \ComponentManager\PackageSource\PackageSourceFactory $packageSourceFactory |
74 | - * @param \ComponentManager\PackageSource\PackageFormatFactory $packageFormatFactory |
|
74 | + * @param PackageFormatFactory $packageFormatFactory |
|
75 | 75 | */ |
76 | 76 | public function __construct(ProjectFile $projectFile, |
77 | 77 | ProjectLockFile $projectLockFile, |
@@ -38,8 +38,6 @@ |
||
38 | 38 | /** |
39 | 39 | * Initialiser. |
40 | 40 | * |
41 | - * @param \ComponentManager\MoodleVersion $version |
|
42 | - * @param \Psr\Log\LoggerInterface $logger |
|
43 | 41 | * @param string $archive |
44 | 42 | * @param string $destination |
45 | 43 | */ |
@@ -69,9 +69,9 @@ |
||
69 | 69 | */ |
70 | 70 | protected function getMetadataCacheFilename() { |
71 | 71 | return sprintf(static::METADATA_CACHE_FILENAME, |
72 | - $this->cacheDirectory, |
|
73 | - PlatformUtil::directorySeparator(), |
|
74 | - PlatformUtil::directorySeparator()); |
|
72 | + $this->cacheDirectory, |
|
73 | + PlatformUtil::directorySeparator(), |
|
74 | + PlatformUtil::directorySeparator()); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -272,13 +272,13 @@ discard block |
||
272 | 272 | */ |
273 | 273 | protected function getMetadataCacheFilename() { |
274 | 274 | $urlHash = parse_url($this->options->uri, PHP_URL_HOST) . '-' |
275 | - . $this->options->project; |
|
275 | + . $this->options->project; |
|
276 | 276 | |
277 | 277 | return sprintf(static::METADATA_CACHE_FILENAME, |
278 | - $this->cacheDirectory, |
|
279 | - PlatformUtil::directorySeparator(), |
|
280 | - PlatformUtil::directorySeparator(), |
|
281 | - $urlHash); |
|
278 | + $this->cacheDirectory, |
|
279 | + PlatformUtil::directorySeparator(), |
|
280 | + PlatformUtil::directorySeparator(), |
|
281 | + $urlHash); |
|
282 | 282 | } |
283 | 283 | |
284 | 284 | /** |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | */ |
373 | 373 | protected function getProjectRepositoryListUrl() { |
374 | 374 | return sprintf(static::PROJECT_REPOSITORY_LIST_PATH, |
375 | - $this->options->project); |
|
375 | + $this->options->project); |
|
376 | 376 | } |
377 | 377 | |
378 | 378 | /** |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | */ |
385 | 385 | protected function getRepositoryBranchesPath($componentName) { |
386 | 386 | return sprintf(static::REPOSITORY_BRANCHES_PATH, $this->options->project, |
387 | - $componentName); |
|
387 | + $componentName); |
|
388 | 388 | } |
389 | 389 | |
390 | 390 | /** |
@@ -396,6 +396,6 @@ discard block |
||
396 | 396 | */ |
397 | 397 | protected function getRepositoryTagsPath($componentName) { |
398 | 398 | return sprintf(static::REPOSITORY_TAGS_PATH, $this->options->project, |
399 | - $componentName); |
|
399 | + $componentName); |
|
400 | 400 | } |
401 | 401 | } |
@@ -61,6 +61,6 @@ |
||
61 | 61 | $className = sprintf(self::CLASS_NAME_FORMAT, $id); |
62 | 62 | |
63 | 63 | return new $className($this->filesystem, $this->cacheDirectory, |
64 | - $options); |
|
64 | + $options); |
|
65 | 65 | } |
66 | 66 | } |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | */ |
63 | 63 | protected function getMetadataCacheDirectory() { |
64 | 64 | return sprintf(static::CACHE_DIRECTORY, |
65 | - $this->cacheDirectory, |
|
66 | - PlatformUtil::directorySeparator()); |
|
65 | + $this->cacheDirectory, |
|
66 | + PlatformUtil::directorySeparator()); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | return new Component($componentSpecification->getName(), $versions, |
109 | - $this); |
|
109 | + $this); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * @return string The path to the module's root directory. |
57 | 57 | */ |
58 | 58 | public function obtainPackage($tempDirectory, |
59 | - ResolvedComponentVersion $resolvedComponentVersion, |
|
60 | - Filesystem $filesystem, |
|
61 | - LoggerInterface $logger); |
|
59 | + ResolvedComponentVersion $resolvedComponentVersion, |
|
60 | + Filesystem $filesystem, |
|
61 | + LoggerInterface $logger); |
|
62 | 62 | } |
@@ -44,9 +44,9 @@ |
||
44 | 44 | * @override \ComponentManager\PackageSource\PackageSource |
45 | 45 | */ |
46 | 46 | public function obtainPackage($tempDirectory, |
47 | - ResolvedComponentVersion $resolvedComponentVersion, |
|
48 | - Filesystem $filesystem, |
|
49 | - LoggerInterface $logger) { |
|
47 | + ResolvedComponentVersion $resolvedComponentVersion, |
|
48 | + Filesystem $filesystem, |
|
49 | + LoggerInterface $logger) { |
|
50 | 50 | $componentVersion = $resolvedComponentVersion->getVersion(); |
51 | 51 | |
52 | 52 | $sources = $componentVersion->getSources(); |