Test Failed
Push — master ( f875a7...aad9c2 )
by Luke
22:35
created
lib/ComponentManager/VersionControl/Git/GitVersionControl.php 3 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      *
59 59
      * @param string       $gitExecutable
60 60
      * @param string       $directory
61
-     * @param integer|null $timeout
61
+     * @param integer $timeout
62 62
      */
63 63
     public function __construct($gitExecutable, $directory, $timeout=60) {
64 64
         $this->gitExecutable = $gitExecutable;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param string       $directory
61 61
      * @param integer|null $timeout
62 62
      */
63
-    public function __construct($gitExecutable, $directory, $timeout=60) {
63
+    public function __construct($gitExecutable, $directory, $timeout = 60) {
64 64
         $this->gitExecutable = $gitExecutable;
65 65
         $this->timeout       = $timeout;
66 66
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @throws VersionControlException
97 97
      */
98
-    public function runCommand(Command $command, $exceptionCode=null) {
98
+    public function runCommand(Command $command, $exceptionCode = null) {
99 99
         $process = $this->createProcess($command->getCommandLine());
100 100
         $process->run();
101 101
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      *
170 170
      * @codeCoverageIgnore
171 171
      */
172
-    public function fetch($remote=null) {
172
+    public function fetch($remote = null) {
173 173
         $command = new FetchCommand($remote);
174 174
         return $this->runCommand(
175 175
                 $command, VersionControlException::CODE_FETCH_FAILED);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      *
187 187
      * @codeCoverageIgnore
188 188
      */
189
-    public function fetchTags($remote=null) {
189
+    public function fetchTags($remote = null) {
190 190
         $command = new FetchCommand($remote);
191 191
         $command->setTags(true);
192 192
         return $this->runCommand(
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/Task/InstallTask.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      * @param Platform     $platform
39 39
      * @param Filesystem   $filesystem
40 40
      * @param Moodle       $moodle
41
-     * @param integer|null $timeouts
41
+     * @param integer|null $timeout
42 42
      * @param integer      $attempts
43 43
      */
44 44
     public function __construct(Project $project, Platform $platform,
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.
lib/ComponentManager/PackageRepository/GitPackageRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * @inheritdoc PackageRepository
42 42
      */
43 43
     public function resolveComponent(ComponentSpecification $componentSpecification,
44
-                                     LoggerInterface $logger) {
44
+                                        LoggerInterface $logger) {
45 45
         return new Component($componentSpecification->getName(), [
46 46
             new ComponentVersion(null, null, null, [
47 47
                 new GitComponentSource($componentSpecification->getExtra('uri'), $componentSpecification->getVersion())
Please login to merge, or discard this patch.
lib/ComponentManager/PackageRepository/MoodlePackageRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      * @inheritdoc PackageRepository
91 91
      */
92 92
     public function resolveComponent(ComponentSpecification $componentSpecification,
93
-                                     LoggerInterface $logger) {
93
+                                        LoggerInterface $logger) {
94 94
         $this->maybeLoadPackageCache();
95 95
 
96 96
         $componentName = $componentSpecification->getName();
Please login to merge, or discard this patch.
lib/ComponentManager/PackageRepository/FilesystemPackageRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      * @inheritdoc PackageRepository
41 41
      */
42 42
     public function resolveComponent(ComponentSpecification $componentSpecification,
43
-                                     LoggerInterface $logger) {
43
+                                        LoggerInterface $logger) {
44 44
         return new Component($componentSpecification->getName(), [
45 45
             new ComponentVersion(null, null, null, [
46 46
                 new DirectoryComponentSource($componentSpecification->getExtra('directory')),
Please login to merge, or discard this patch.
lib/ComponentManager/PackageRepository/StashPackageRepository.php 1 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/PackageSource/PackageSource.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * @return string The path to the module's root directory.
61 61
      */
62 62
     public function obtainPackage($tempDirectory, $timeout,
63
-                                  ResolvedComponentVersion $resolvedComponentVersion,
64
-                                  Filesystem $filesystem,
65
-                                  LoggerInterface $logger);
63
+                                    ResolvedComponentVersion $resolvedComponentVersion,
64
+                                    Filesystem $filesystem,
65
+                                    LoggerInterface $logger);
66 66
 }
Please login to merge, or discard this patch.