@@ -33,6 +33,7 @@ |
||
33 | 33 | * @param HttpClient $httpClient |
34 | 34 | * @param Platform $platform |
35 | 35 | * @param stdClass $options |
36 | + * @return void |
|
36 | 37 | */ |
37 | 38 | public function __construct(Filesystem $filesystem, HttpClient $httpClient, |
38 | 39 | Platform $platform, stdClass $options); |
@@ -16,8 +16,8 @@ |
||
16 | 16 | use ComponentManager\Exception\InvalidProjectException; |
17 | 17 | use ComponentManager\HttpClient; |
18 | 18 | use ComponentManager\Platform\Platform; |
19 | -use stdClass; |
|
20 | 19 | use Symfony\Component\Filesystem\Filesystem; |
20 | +use stdClass; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Package repository interface. |
@@ -24,6 +24,7 @@ |
||
24 | 24 | * Initialiser. |
25 | 25 | * |
26 | 26 | * @param Filesystem $filesystem |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function __construct(Filesystem $filesystem); |
29 | 30 |
@@ -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 |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * |
138 | 138 | * @return Moodle |
139 | 139 | */ |
140 | - protected function getMoodle($moodleDirectory=null) { |
|
140 | + protected function getMoodle($moodleDirectory = null) { |
|
141 | 141 | if ($this->moodle === null) { |
142 | 142 | $moodleDirectory = ($moodleDirectory === null) |
143 | 143 | ? $this->platform->getWorkingDirectory() : $moodleDirectory; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * |
157 | 157 | * @return Project |
158 | 158 | */ |
159 | - protected function getProject($projectFilename=null, $projectLockFilename=null) { |
|
159 | + protected function getProject($projectFilename = null, $projectLockFilename = null) { |
|
160 | 160 | $workingDirectory = $this->platform->getWorkingDirectory(); |
161 | 161 | |
162 | 162 | if ($this->project === null) { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | const HELP = <<<HELP |
39 | 39 | Installs, into the Moodle installation in the present working directory, all of |
40 | 40 | the components listed in its componentmgr.json file. |
41 | -HELP; |
|
41 | +help; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Initialiser. |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param ComponentVersion[] $versions |
66 | 66 | * @param PackageRepository|null $packageRepository |
67 | 67 | */ |
68 | - public function __construct($name, $versions, $packageRepository=null) { |
|
68 | + public function __construct($name, $versions, $packageRepository = null) { |
|
69 | 69 | $this->name = $name; |
70 | 70 | $this->versions = $versions; |
71 | 71 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * @return string |
127 | 127 | */ |
128 | 128 | public function getPluginType() { |
129 | - list($type, ) = $this->getNameParts(); |
|
129 | + list($type,) = $this->getNameParts(); |
|
130 | 130 | |
131 | 131 | return $type; |
132 | 132 | } |
@@ -84,7 +84,7 @@ |
||
84 | 84 | * @param integer $maturity |
85 | 85 | * @param ComponentSource[]|null $sources |
86 | 86 | */ |
87 | - public function __construct($version, $release, $maturity, $sources=null) { |
|
87 | + public function __construct($version, $release, $maturity, $sources = null) { |
|
88 | 88 | $this->version = $version; |
89 | 89 | $this->release = $release; |
90 | 90 | $this->maturity = $maturity; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | const HELP = <<<HELP |
32 | 32 | Executes the specified script for a component. |
33 | -HELP; |
|
33 | +help; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @inheritdoc Command |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | const HELP = <<<HELP |
34 | 34 | Queries properties of the Moodle installation in the present working directory. |
35 | -HELP; |
|
35 | +help; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @inheritdoc Command |