@@ -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), |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | const HELP = <<<HELP |
| 35 | 35 | Refreshes cached package repository meta for all caching package repositories. |
| 36 | -HELP; |
|
| 36 | +help; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @override \Symfony\Component\Console\Command\Command |
@@ -62,12 +62,12 @@ |
||
| 62 | 62 | |
| 63 | 63 | $tempDirectory = PlatformUtil::createTempDirectory(); |
| 64 | 64 | $archive = $tempDirectory |
| 65 | - . PlatformUtil::directorySeparator() |
|
| 66 | - . 'moodle.zip'; |
|
| 65 | + . PlatformUtil::directorySeparator() |
|
| 66 | + . 'moodle.zip'; |
|
| 67 | 67 | $destination = $tempDirectory |
| 68 | - . PlatformUtil::directorySeparator() . 'moodle'; |
|
| 68 | + . PlatformUtil::directorySeparator() . 'moodle'; |
|
| 69 | 69 | $projectLockFilename = $destination . PlatformUtil::directorySeparator() |
| 70 | - . 'componentmgr.lock.json'; |
|
| 70 | + . 'componentmgr.lock.json'; |
|
| 71 | 71 | |
| 72 | 72 | /** @var \Symfony\Component\Filesystem\Filesystem $filesystem */ |
| 73 | 73 | $filesystem = $this->container->get('filesystem'); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | const HELP = <<<HELP |
| 35 | 35 | Refreshes cached package repository meta for all caching package repositories. |
| 36 | -HELP; |
|
| 36 | +help; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @override \Symfony\Component\Console\Command\Command |
@@ -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 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | const HELP = <<<HELP |
| 35 | 35 | Refreshes cached package repository meta for all caching package repositories. |
| 36 | -HELP; |
|
| 36 | +help; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @override \Symfony\Component\Console\Command\Command |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | const HELP = <<<HELP |
| 35 | 35 | Refreshes cached package repository meta for all caching package repositories. |
| 36 | -HELP; |
|
| 36 | +help; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @override \Symfony\Component\Console\Command\Command |
@@ -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 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * |
| 101 | 101 | * @return void |
| 102 | 102 | */ |
| 103 | - public function fetch($remote, $withTags=true) { |
|
| 103 | + public function fetch($remote, $withTags = true) { |
|
| 104 | 104 | $process = $this->getProcess(['fetch', $remote]); |
| 105 | 105 | $process->run(); |
| 106 | 106 | |
@@ -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 | /** |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | // Error reporting |
| 12 | -ini_set('display_errors', 'on'); |
|
| 12 | +ini_set('display_errors', 'on'); |
|
| 13 | 13 | ini_set('error_reporting', E_ALL); |
| 14 | 14 | |
| 15 | 15 | // Set the default timezone if not already set |
@@ -39,9 +39,9 @@ |
||
| 39 | 39 | * @override \ComponentManager\PackageSource\PackageSource |
| 40 | 40 | */ |
| 41 | 41 | public function obtainPackage($tempDirectory, |
| 42 | - ResolvedComponentVersion $resolvedComponentVersion, |
|
| 43 | - Filesystem $filesystem, |
|
| 44 | - LoggerInterface $logger) { |
|
| 42 | + ResolvedComponentVersion $resolvedComponentVersion, |
|
| 43 | + Filesystem $filesystem, |
|
| 44 | + LoggerInterface $logger) { |
|
| 45 | 45 | $version = $resolvedComponentVersion->getVersion(); |
| 46 | 46 | $sources = $version->getSources(); |
| 47 | 47 | |