Completed
Branch develop (e3b860)
by Luke
13:48
created
lib/ComponentManager/PackageRepository/PackageRepository.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@
 block discarded – undo
29 29
      * @param \Symfony\Component\Filesystem\Filesystem $filesystem
30 30
      * @param \ComponentManager\Platform\Platform      $platform
31 31
      * @param \stdClass                                $options
32
+     * @return void
32 33
      */
33 34
     public function __construct(Filesystem $filesystem, Platform $platform,
34 35
                                 stdClass $options);
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 use ComponentManager\ComponentSpecification;
14 14
 use ComponentManager\ComponentVersion;
15 15
 use ComponentManager\Platform\Platform;
16
-use stdClass;
17 16
 use Symfony\Component\Filesystem\Filesystem;
17
+use stdClass;
18 18
 
19 19
 /**
20 20
  * Package repository interface.
Please login to merge, or discard this patch.
lib/ComponentManager/Platform/PlatformFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 namespace ComponentManager\Platform;
12 12
 
13 13
 use ComponentManager\Exception\PlatformException;
14
-use Symfony\Component\DependencyInjection\Definition;
15 14
 
16 15
 class PlatformFactory {
17 16
     /**
Please login to merge, or discard this patch.
lib/ComponentManager/Command/ProjectAwareCommand.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,16 +74,16 @@
 block discarded – undo
74 74
         if ($this->project === null) {
75 75
             if ($projectFilename === null) {
76 76
                 $projectFilename = PlatformUtil::workingDirectory()
77
-                                 . PlatformUtil::directorySeparator()
78
-                                 . 'componentmgr.json';
77
+                                    . PlatformUtil::directorySeparator()
78
+                                    . 'componentmgr.json';
79 79
             } else {
80 80
                 $projectFilename = PlatformUtil::expandPath($projectFilename);
81 81
             }
82 82
 
83 83
             if ($projectLockFilename === null) {
84 84
                 $projectLockFilename = PlatformUtil::workingDirectory()
85
-                                     . PlatformUtil::directorySeparator()
86
-                                     . 'componentmgr.lock.json';
85
+                                        . PlatformUtil::directorySeparator()
86
+                                        . 'componentmgr.lock.json';
87 87
             } else {
88 88
                 $projectLockFilename = PlatformUtil::expandPath(
89 89
                         $projectLockFilename);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @return \ComponentManager\Moodle
53 53
      */
54
-    protected function getMoodle($moodleDirectory=null) {
54
+    protected function getMoodle($moodleDirectory = null) {
55 55
         if ($this->moodle === null) {
56 56
             $moodleDirectory = ($moodleDirectory === null)
57 57
                     ? PlatformUtil::workingDirectory() : $moodleDirectory;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return \ComponentManager\Project\Project
72 72
      */
73
-    protected function getProject($projectFilename=null, $projectLockFilename=null) {
73
+    protected function getProject($projectFilename = null, $projectLockFilename = null) {
74 74
         if ($this->project === null) {
75 75
             if ($projectFilename === null) {
76 76
                 $projectFilename = PlatformUtil::workingDirectory()
Please login to merge, or discard this patch.
lib/ComponentManager/PackageRepository/GithubPackageRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         }
95 95
 
96 96
         return new Component($componentSpecification->getName(), $versions,
97
-                             $this);
97
+                                $this);
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
lib/ComponentManager/Console/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.