Test Failed
Push — master ( f875a7...aad9c2 )
by Luke
22:35
created
lib/ComponentManager/Command/MoodleCommand.php 1 patch
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.
lib/ComponentManager/Command/RunScriptCommand.php 1 patch
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.
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 1 patch
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.
lib/ComponentManager/PackageRepository/StashPackageRepository.php 2 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.
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.
lib/ComponentManager/HttpClient.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
lib/ComponentManager/VersionControl/Git/GitVersionControl.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
 use ComponentManager\VersionControl\Git\Command\Command;
17 17
 use ComponentManager\VersionControl\Git\Command\FetchCommand;
18 18
 use ComponentManager\VersionControl\Git\Command\InitCommand;
19
-use ComponentManager\VersionControl\Git\Command\RevParseCommand;
20 19
 use ComponentManager\VersionControl\Git\Command\RemoteAddCommand;
20
+use ComponentManager\VersionControl\Git\Command\RevParseCommand;
21 21
 use Symfony\Component\Process\Process;
22 22
 use Symfony\Component\Process\ProcessBuilder;
23 23
 
Please login to merge, or discard this patch.
lib/ComponentManager/PackageRepository/PackageRepository.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 use ComponentManager\HttpClient;
18 18
 use ComponentManager\Platform\Platform;
19 19
 use Psr\Log\LoggerInterface;
20
-use stdClass;
21 20
 use Symfony\Component\Filesystem\Filesystem;
21
+use stdClass;
22 22
 
23 23
 /**
24 24
  * Package repository interface.
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
lib/ComponentManager/PackageRepository/GithubPackageRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @inheritdoc PackageRepository
69 69
      */
70 70
     public function resolveComponent(ComponentSpecification $componentSpecification,
71
-                                     LoggerInterface $logger) {
71
+                                        LoggerInterface $logger) {
72 72
         /** @var Repo $api */
73 73
         $api = $this->getClient()->api('repo');
74 74
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         }
91 91
 
92 92
         return new Component($componentSpecification->getName(), $versions,
93
-                             $this);
93
+                                $this);
94 94
     }
95 95
 
96 96
     /**
Please login to merge, or discard this patch.