@@ -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 | |
@@ -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); |
@@ -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 | |