@@ -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 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * |
86 | 86 | * @throws VersionControlException |
87 | 87 | */ |
88 | - public function runCommand(Command $command, $exceptionCode=null) { |
|
88 | + public function runCommand(Command $command, $exceptionCode = null) { |
|
89 | 89 | $process = $this->createProcess($command->getCommandLine()); |
90 | 90 | $process->run(); |
91 | 91 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * |
160 | 160 | * @codeCoverageIgnore |
161 | 161 | */ |
162 | - public function fetch($remote=null) { |
|
162 | + public function fetch($remote = null) { |
|
163 | 163 | $command = new FetchCommand($remote); |
164 | 164 | return $this->runCommand( |
165 | 165 | $command, VersionControlException::CODE_FETCH_FAILED); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * |
177 | 177 | * @codeCoverageIgnore |
178 | 178 | */ |
179 | - public function fetchTags($remote=null) { |
|
179 | + public function fetchTags($remote = null) { |
|
180 | 180 | $command = new FetchCommand($remote); |
181 | 181 | $command->setTags(true); |
182 | 182 | return $this->runCommand( |
@@ -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 |