@@ -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 | /** |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | */ |
272 | 272 | protected function getMetadataCacheFilename() { |
273 | 273 | $urlHash = parse_url($this->options->uri, PHP_URL_HOST) . '-' |
274 | - . $this->options->project; |
|
274 | + . $this->options->project; |
|
275 | 275 | |
276 | 276 | return $this->platform->joinPaths([ |
277 | 277 | parent::getMetadataCacheDirectory(), |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | */ |
371 | 371 | protected function getProjectRepositoryListUrl() { |
372 | 372 | return sprintf(static::PROJECT_REPOSITORY_LIST_PATH, |
373 | - $this->options->project); |
|
373 | + $this->options->project); |
|
374 | 374 | } |
375 | 375 | |
376 | 376 | /** |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | */ |
383 | 383 | protected function getRepositoryBranchesPath($componentName) { |
384 | 384 | return sprintf(static::REPOSITORY_BRANCHES_PATH, $this->options->project, |
385 | - $componentName); |
|
385 | + $componentName); |
|
386 | 386 | } |
387 | 387 | |
388 | 388 | /** |
@@ -394,6 +394,6 @@ discard block |
||
394 | 394 | */ |
395 | 395 | protected function getRepositoryTagsPath($componentName) { |
396 | 396 | return sprintf(static::REPOSITORY_TAGS_PATH, $this->options->project, |
397 | - $componentName); |
|
397 | + $componentName); |
|
398 | 398 | } |
399 | 399 | } |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | return new Component($componentSpecification->getName(), $versions, |
97 | - $this); |
|
97 | + $this); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * @param string|null $tagName |
54 | 54 | * @param string|null $appId |
55 | 55 | */ |
56 | - public function __construct($tagName=null, $appId=null) { |
|
56 | + public function __construct($tagName = null, $appId = null) { |
|
57 | 57 | $this->tagName = ($tagName === null) ? 'console.command' : $tagName; |
58 | 58 | $this->appId = ($appId === null) ? 'console.application' : $appId; |
59 | 59 | } |