Passed
Push — master ( 3dbcaf...f358b5 )
by Luke
02:23
created
lib/ComponentManager/PackageRepository/PackageRepository.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -33,6 +33,7 @@
 block discarded – undo
33 33
      * @param HttpClient $httpClient
34 34
      * @param Platform   $platform
35 35
      * @param stdClass   $options
36
+     * @return void
36 37
      */
37 38
     public function __construct(Filesystem $filesystem, HttpClient $httpClient,
38 39
                                 Platform $platform, 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
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
 use ComponentManager\Exception\InvalidProjectException;
17 17
 use ComponentManager\HttpClient;
18 18
 use ComponentManager\Platform\Platform;
19
-use stdClass;
20 19
 use Symfony\Component\Filesystem\Filesystem;
20
+use stdClass;
21 21
 
22 22
 /**
23 23
  * Package repository interface.
Please login to merge, or discard this patch.
lib/ComponentManager/Platform/Platform.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@
 block discarded – undo
24 24
      * Initialiser.
25 25
      *
26 26
      * @param Filesystem $filesystem
27
+     * @return void
27 28
      */
28 29
     public function __construct(Filesystem $filesystem);
29 30
 
Please login to merge, or discard this patch.
lib/ComponentManager/ComponentSpecification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/ComponentManager/Command/ProjectAwareCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @return Moodle
139 139
      */
140
-    protected function getMoodle($moodleDirectory=null) {
140
+    protected function getMoodle($moodleDirectory = null) {
141 141
         if ($this->moodle === null) {
142 142
             $moodleDirectory = ($moodleDirectory === null)
143 143
                     ? $this->platform->getWorkingDirectory() : $moodleDirectory;
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      *
157 157
      * @return Project
158 158
      */
159
-    protected function getProject($projectFilename=null, $projectLockFilename=null) {
159
+    protected function getProject($projectFilename = null, $projectLockFilename = null) {
160 160
         $workingDirectory = $this->platform->getWorkingDirectory();
161 161
 
162 162
         if ($this->project === null) {
Please login to merge, or discard this patch.
lib/ComponentManager/Command/InstallCommand.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     const HELP = <<<HELP
39 39
 Installs, into the Moodle installation in the present working directory, all of
40 40
 the components listed in its componentmgr.json file.
41
-HELP;
41
+help;
42 42
 
43 43
     /**
44 44
      * Initialiser.
Please login to merge, or discard this patch.
lib/ComponentManager/Component.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * @param ComponentVersion[]     $versions
66 66
      * @param PackageRepository|null $packageRepository
67 67
      */
68
-    public function __construct($name, $versions, $packageRepository=null) {
68
+    public function __construct($name, $versions, $packageRepository = null) {
69 69
         $this->name     = $name;
70 70
         $this->versions = $versions;
71 71
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      * @return string
127 127
      */
128 128
     public function getPluginType() {
129
-        list($type, ) = $this->getNameParts();
129
+        list($type,) = $this->getNameParts();
130 130
 
131 131
         return $type;
132 132
     }
Please login to merge, or discard this patch.
lib/ComponentManager/ComponentVersion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      * @param integer                $maturity
85 85
      * @param ComponentSource[]|null $sources
86 86
      */
87
-    public function __construct($version, $release, $maturity, $sources=null) {
87
+    public function __construct($version, $release, $maturity, $sources = null) {
88 88
         $this->version  = $version;
89 89
         $this->release  = $release;
90 90
         $this->maturity = $maturity;
Please login to merge, or discard this patch.
lib/ComponentManager/Command/RunScriptCommand.php 1 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/Command/MoodleCommand.php 1 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.