@@ -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 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
17 | 17 | |
18 | 18 | // Error reporting |
19 | -ini_set('display_errors', 'on'); |
|
19 | +ini_set('display_errors', 'on'); |
|
20 | 20 | ini_set('error_reporting', E_ALL); |
21 | 21 | |
22 | 22 | // Set the default timezone if not already set |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | * |
321 | 321 | * @return mixed The JSON-decoded representation of the response body. |
322 | 322 | */ |
323 | - protected function get($path, array $queryParams=[]) { |
|
323 | + protected function get($path, array $queryParams = []) { |
|
324 | 324 | $uri = $this->options->uri . $path; |
325 | 325 | $uri = $this->httpClient->createUri($uri) |
326 | 326 | ->withQuery(http_build_query($queryParams)); |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | * |
340 | 340 | * @return mixed The value attribute of the JSON-decoded response body. |
341 | 341 | */ |
342 | - protected function getAllPages($path, array $queryParams=[]) { |
|
342 | + protected function getAllPages($path, array $queryParams = []) { |
|
343 | 343 | $values = []; |
344 | 344 | |
345 | 345 | $responseBody = (object) [ |
@@ -78,8 +78,8 @@ |
||
78 | 78 | * |
79 | 79 | * @return RequestInterface |
80 | 80 | */ |
81 | - public function createRequest($method, $uri, $headers=[], $body=null, |
|
82 | - $protocolVersion='1.1') { |
|
81 | + public function createRequest($method, $uri, $headers = [], $body = null, |
|
82 | + $protocolVersion = '1.1') { |
|
83 | 83 | return $this->messageFactory->createRequest( |
84 | 84 | $method, $uri, $headers, $body, $protocolVersion); |
85 | 85 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @param string|null $remote |
35 | 35 | */ |
36 | - public function __construct($remote=null) { |
|
36 | + public function __construct($remote = null) { |
|
37 | 37 | $this->remote = $remote; |
38 | 38 | } |
39 | 39 |
@@ -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) { |