Completed
Push — master ( 885e5b...cff09a )
by Luke
19:18 queued 12:10
created
lib/ComponentManager/Command/MoodleCommand.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     const HELP = <<<HELP
34 34
 Queries properties of the Moodle installation in the present working directory.
35
-HELP;
35
+help;
36 36
 
37 37
     /**
38 38
      * @inheritdoc Command
Please login to merge, or discard this patch.
lib/ComponentManager/Command/RunScriptCommand.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     const HELP = <<<HELP
32 32
 Executes the specified script for a component.
33
-HELP;
33
+help;
34 34
 
35 35
     /**
36 36
      * @inheritdoc Command
Please login to merge, or discard this patch.
lib/ComponentManager/Exception/AbstractException.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
lib/ComponentManager/Command/PackageCommand.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,12 +103,12 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     const HELP = <<<HELP
41 41
 Packages a Moodle site from a project file.
42
-HELP;
42
+help;
43 43
 
44 44
     /**
45 45
      * Moodle.org plugin and update API.
Please login to merge, or discard this patch.
lib/ComponentManager/PackageSource/GitPackageSource.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@
 block discarded – undo
43 43
      * @inheritdoc PackageSource
44 44
      */
45 45
     public function obtainPackage($tempDirectory, $timeout,
46
-                                  ResolvedComponentVersion $resolvedComponentVersion,
47
-                                  Filesystem $filesystem,
48
-                                  LoggerInterface $logger) {
46
+                                    ResolvedComponentVersion $resolvedComponentVersion,
47
+                                    Filesystem $filesystem,
48
+                                    LoggerInterface $logger) {
49 49
         $componentVersion = $resolvedComponentVersion->getVersion();
50 50
 
51 51
         $sources = $componentVersion->getSources();
Please login to merge, or discard this patch.
lib/ComponentManager/DependencyInjection/ConsoleCommandsPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
lib/ComponentManager/DependencyInjection/ContainerAwareTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
etc/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
lib/ComponentManager/PackageRepository/StashPackageRepository.php 4 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 use DateTime;
19 19
 use OutOfBoundsException;
20 20
 use Psr\Log\LoggerInterface;
21
-use stdClass;
22 21
 use Symfony\Component\HttpFoundation\Request;
22
+use stdClass;
23 23
 
24 24
 /**
25 25
  * Atlassian Stash project package repository.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) [
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@
 block discarded – undo
325 325
         $uri = $this->httpClient->createUri($uri)
326 326
             ->withQuery(http_build_query($queryParams));
327 327
         $message = $this->httpClient->createRequest(Request::METHOD_GET, $uri)
328
-            ->withHeader('Authorization', "Basic {$this->options->authentication}");
328
+            ->withHeader('Authorization', "basic {$this->options->authentication}");
329 329
         $response = $this->httpClient->sendRequest($message);
330 330
 
331 331
         return json_decode($response->getBody());
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @inheritdoc PackageRepository
101 101
      */
102 102
     public function resolveComponent(ComponentSpecification $componentSpecification,
103
-                                     LoggerInterface $logger) {
103
+                                        LoggerInterface $logger) {
104 104
         $this->maybeLoadPackageCache();
105 105
 
106 106
         $componentName = $componentSpecification->getName();
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      */
267 267
     protected function getMetadataCacheFilename() {
268 268
         $urlHash = parse_url($this->options->uri, PHP_URL_HOST) . '-'
269
-                 . $this->options->project;
269
+                    . $this->options->project;
270 270
 
271 271
         return $this->platform->joinPaths([
272 272
             parent::getMetadataCacheDirectory(),
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
      */
363 363
     protected function getProjectRepositoryListUrl() {
364 364
         return sprintf(static::PROJECT_REPOSITORY_LIST_PATH,
365
-                       $this->options->project);
365
+                        $this->options->project);
366 366
     }
367 367
 
368 368
     /**
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
      */
375 375
     protected function getRepositoryBranchesPath($componentName) {
376 376
         return sprintf(static::REPOSITORY_BRANCHES_PATH, $this->options->project,
377
-                       $componentName);
377
+                        $componentName);
378 378
     }
379 379
 
380 380
     /**
@@ -386,6 +386,6 @@  discard block
 block discarded – undo
386 386
      */
387 387
     protected function getRepositoryTagsPath($componentName) {
388 388
         return sprintf(static::REPOSITORY_TAGS_PATH, $this->options->project,
389
-                       $componentName);
389
+                        $componentName);
390 390
     }
391 391
 }
Please login to merge, or discard this patch.