@@ -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 | */ |
@@ -66,8 +66,8 @@ |
||
66 | 66 | * @param string $packageSource |
67 | 67 | * @param \stdClass $extra |
68 | 68 | */ |
69 | - public function __construct($name, $version, $packageRepository=null, |
|
70 | - $packageSource=null, stdClass $extra=null) { |
|
69 | + public function __construct($name, $version, $packageRepository = null, |
|
70 | + $packageSource = null, stdClass $extra = null) { |
|
71 | 71 | $this->name = $name; |
72 | 72 | $this->version = $version; |
73 | 73 |
@@ -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, |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * @param \ComponentManager\ComponentVersion[] $versions |
64 | 64 | * @param \ComponentManager\PackageRepository\PackageRepository $packageRepository |
65 | 65 | */ |
66 | - public function __construct($name, $versions, $packageRepository=null) { |
|
66 | + public function __construct($name, $versions, $packageRepository = null) { |
|
67 | 67 | $this->name = $name; |
68 | 68 | $this->versions = $versions; |
69 | 69 | |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * @return string |
121 | 121 | */ |
122 | 122 | public function getPluginType() { |
123 | - list($type, ) = $this->getNameParts(); |
|
123 | + list($type,) = $this->getNameParts(); |
|
124 | 124 | |
125 | 125 | return $type; |
126 | 126 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | * @param integer $maturity |
84 | 84 | * @param \ComponentManager\ComponentSource\ComponentSource[] $sources |
85 | 85 | */ |
86 | - public function __construct($version, $release, $maturity, $sources=null) { |
|
86 | + public function __construct($version, $release, $maturity, $sources = null) { |
|
87 | 87 | $this->version = $version; |
88 | 88 | $this->release = $release; |
89 | 89 | $this->maturity = $maturity; |
@@ -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 |
@@ -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(); |
@@ -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 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * |
28 | 28 | * @return void |
29 | 29 | */ |
30 | - public function setContainer(ContainerInterface $container=null) { |
|
30 | + public function setContainer(ContainerInterface $container = null) { |
|
31 | 31 | $this->container = $container; |
32 | 32 | } |
33 | 33 | } |
@@ -23,6 +23,7 @@ |
||
23 | 23 | * Initialiser. |
24 | 24 | * |
25 | 25 | * @param \Symfony\Component\Filesystem\Filesystem $filesystem |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function __construct(Filesystem $filesystem); |
28 | 29 |