| @@ -71,7 +71,7 @@ | ||
| 71 | 71 | * @param \ComponentManager\Project\ProjectLockFile $projectLockFile | 
| 72 | 72 | * @param \ComponentManager\PackageRepository\PackageRepositoryFactory $packageRepositoryFactory | 
| 73 | 73 | * @param \ComponentManager\PackageSource\PackageSourceFactory $packageSourceFactory | 
| 74 | - * @param \ComponentManager\PackageSource\PackageFormatFactory $packageFormatFactory | |
| 74 | + * @param PackageFormatFactory $packageFormatFactory | |
| 75 | 75 | */ | 
| 76 | 76 | public function __construct(ProjectFile $projectFile, | 
| 77 | 77 | ProjectLockFile $projectLockFile, | 
| @@ -63,7 +63,7 @@ discard block | ||
| 63 | 63 | * @param \ComponentManager\ComponentVersion[] $versions | 
| 64 | 64 | * @param \ComponentManager\PackageRepository\PackageRepository $packageRepository | 
| 65 | 65 | */ | 
| 66 | -    public function __construct($name, $versions, $packageRepository=null) { | |
| 66 | +    public function __construct($name, $versions, $packageRepository = null) { | |
| 67 | 67 | $this->name = $name; | 
| 68 | 68 | $this->versions = $versions; | 
| 69 | 69 | |
| @@ -120,7 +120,7 @@ discard block | ||
| 120 | 120 | * @return string | 
| 121 | 121 | */ | 
| 122 | 122 |      public function getPluginType() { | 
| 123 | - list($type, ) = $this->getNameParts(); | |
| 123 | + list($type,) = $this->getNameParts(); | |
| 124 | 124 | |
| 125 | 125 | return $type; | 
| 126 | 126 | } | 
| @@ -83,7 +83,7 @@ | ||
| 83 | 83 | * @param integer $maturity | 
| 84 | 84 | * @param \ComponentManager\ComponentSource\ComponentSource[] $sources | 
| 85 | 85 | */ | 
| 86 | -    public function __construct($version, $release, $maturity, $sources=null) { | |
| 86 | +    public function __construct($version, $release, $maturity, $sources = null) { | |
| 87 | 87 | $this->version = $version; | 
| 88 | 88 | $this->release = $release; | 
| 89 | 89 | $this->maturity = $maturity; | 
| @@ -56,7 +56,7 @@ | ||
| 56 | 56 | * @return string The path to the module's root directory. | 
| 57 | 57 | */ | 
| 58 | 58 | public function obtainPackage($tempDirectory, | 
| 59 | - ResolvedComponentVersion $resolvedComponentVersion, | |
| 60 | - Filesystem $filesystem, | |
| 61 | - LoggerInterface $logger); | |
| 59 | + ResolvedComponentVersion $resolvedComponentVersion, | |
| 60 | + Filesystem $filesystem, | |
| 61 | + LoggerInterface $logger); | |
| 62 | 62 | } | 
| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | * @override \ComponentManager\PackageSource\PackageSource | 
| 45 | 45 | */ | 
| 46 | 46 | public function obtainPackage($tempDirectory, | 
| 47 | - ResolvedComponentVersion $resolvedComponentVersion, | |
| 48 | - Filesystem $filesystem, | |
| 49 | -                                  LoggerInterface $logger) { | |
| 47 | + ResolvedComponentVersion $resolvedComponentVersion, | |
| 48 | + Filesystem $filesystem, | |
| 49 | +                                    LoggerInterface $logger) { | |
| 50 | 50 | $componentVersion = $resolvedComponentVersion->getVersion(); | 
| 51 | 51 | |
| 52 | 52 | $sources = $componentVersion->getSources(); | 
| @@ -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(); | 
| @@ -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 | |
| @@ -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 | Queries properties of the Moodle installation in the present working directory. | 
| 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 | |
| @@ -32,7 +32,7 @@ | ||
| 32 | 32 | */ | 
| 33 | 33 | const HELP = <<<HELP | 
| 34 | 34 | Executes the specified script for a component. | 
| 35 | -HELP; | |
| 35 | +help; | |
| 36 | 36 | |
| 37 | 37 | /** | 
| 38 | 38 | * @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 |