@@ -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; |
@@ -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 | |
@@ -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 |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | * |
| 137 | 137 | * @return \ComponentManager\Moodle |
| 138 | 138 | */ |
| 139 | - protected function getMoodle($moodleDirectory=null) { |
|
| 139 | + protected function getMoodle($moodleDirectory = null) { |
|
| 140 | 140 | if ($this->moodle === null) { |
| 141 | 141 | $moodleDirectory = ($moodleDirectory === null) |
| 142 | 142 | ? $this->platform->getWorkingDirectory() : $moodleDirectory; |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * |
| 156 | 156 | * @return \ComponentManager\Project\Project |
| 157 | 157 | */ |
| 158 | - protected function getProject($projectFilename=null, $projectLockFilename=null) { |
|
| 158 | + protected function getProject($projectFilename = null, $projectLockFilename = null) { |
|
| 159 | 159 | $workingDirectory = $this->platform->getWorkingDirectory(); |
| 160 | 160 | |
| 161 | 161 | if ($this->project === null) { |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | use ComponentManager\ComponentVersion; |
| 15 | 15 | use ComponentManager\HttpClient; |
| 16 | 16 | use ComponentManager\Platform\Platform; |
| 17 | -use stdClass; |
|
| 18 | 17 | use Symfony\Component\Filesystem\Filesystem; |
| 18 | +use stdClass; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Package repository interface. |