@@ -45,8 +45,8 @@ |
||
| 45 | 45 | ->setHelp(static::HELP) |
| 46 | 46 | ->setDefinition(new InputDefinition([ |
| 47 | 47 | new InputArgument(Argument::ARGUMENT_ACTION, |
| 48 | - InputArgument::REQUIRED, |
|
| 49 | - Argument::ARGUMENT_ACTION_HELP), |
|
| 48 | + InputArgument::REQUIRED, |
|
| 49 | + Argument::ARGUMENT_ACTION_HELP), |
|
| 50 | 50 | new InputOption(Argument::ARGUMENT_MOODLE_DIR, null, |
| 51 | 51 | InputOption::VALUE_REQUIRED, |
| 52 | 52 | Argument::ARGUMENT_MOODLE_DIR_HELP), |
@@ -44,8 +44,8 @@ |
||
| 44 | 44 | ->setHelp(static::HELP) |
| 45 | 45 | ->setDefinition(new InputDefinition([ |
| 46 | 46 | new InputArgument(Argument::ARGUMENT_SCRIPT, |
| 47 | - InputArgument::REQUIRED, |
|
| 48 | - Argument::ARGUMENT_SCRIPT_HELP), |
|
| 47 | + InputArgument::REQUIRED, |
|
| 48 | + Argument::ARGUMENT_SCRIPT_HELP), |
|
| 49 | 49 | ])); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function __toString() { |
| 34 | 34 | return sprintf(static::MESSAGE_FORMAT, $this->getExceptionType(), |
| 35 | - $this->getExceptionCodeName(), $this->code, |
|
| 36 | - $this->message); |
|
| 35 | + $this->getExceptionCodeName(), $this->code, |
|
| 36 | + $this->message); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -103,12 +103,12 @@ |
||
| 103 | 103 | |
| 104 | 104 | $tempDirectory = $this->platform->createTempDirectory(); |
| 105 | 105 | $archive = $tempDirectory |
| 106 | - . $this->platform->getDirectorySeparator() |
|
| 107 | - . 'moodle.zip'; |
|
| 106 | + . $this->platform->getDirectorySeparator() |
|
| 107 | + . 'moodle.zip'; |
|
| 108 | 108 | $destination = $tempDirectory |
| 109 | - . $this->platform->getDirectorySeparator() . 'moodle'; |
|
| 109 | + . $this->platform->getDirectorySeparator() . 'moodle'; |
|
| 110 | 110 | $projectLockFilename = $destination . $this->platform->getDirectorySeparator() |
| 111 | - . 'componentmgr.lock.json'; |
|
| 111 | + . 'componentmgr.lock.json'; |
|
| 112 | 112 | |
| 113 | 113 | $moodle = new Moodle($destination, $this->platform); |
| 114 | 114 | $project = $this->getProject($projectFilename, $projectLockFilename); |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | * @return RequestInterface |
| 80 | 80 | */ |
| 81 | 81 | public function createRequest($method, $uri, $headers=[], $body=null, |
| 82 | - $protocolVersion='1.1') { |
|
| 82 | + $protocolVersion='1.1') { |
|
| 83 | 83 | return $this->messageFactory->createRequest( |
| 84 | 84 | $method, $uri, $headers, $body, $protocolVersion); |
| 85 | 85 | } |
@@ -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); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * @throws InvalidProjectException |
| 64 | 64 | */ |
| 65 | 65 | public function resolveComponent(ComponentSpecification $componentSpecification, |
| 66 | - LoggerInterface $logger); |
|
| 66 | + LoggerInterface $logger); |
|
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * Determine whether the version specification is satisfied by the given version. |
@@ -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 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @param Platform $platform |
| 39 | 39 | * @param Filesystem $filesystem |
| 40 | 40 | * @param Moodle $moodle |
| 41 | - * @param integer|null $timeouts |
|
| 41 | + * @param integer|null $timeout |
|
| 42 | 42 | * @param integer $attempts |
| 43 | 43 | */ |
| 44 | 44 | public function __construct(Project $project, Platform $platform, |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | * |
| 59 | 59 | * @param string $gitExecutable |
| 60 | 60 | * @param string $directory |
| 61 | - * @param integer|null $timeout |
|
| 61 | + * @param integer $timeout |
|
| 62 | 62 | */ |
| 63 | 63 | public function __construct($gitExecutable, $directory, $timeout=60) { |
| 64 | 64 | $this->gitExecutable = $gitExecutable; |