Passed
Push — master ( 054f60...db06ef )
by Luke
05:01 queued 02:43
created
lib/ComponentManager/Component.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param \ComponentManager\ComponentVersion[]                  $versions
64 64
      * @param \ComponentManager\PackageRepository\PackageRepository $packageRepository
65 65
      */
66
-    public function __construct($name, $versions, $packageRepository=null) {
66
+    public function __construct($name, $versions, $packageRepository = null) {
67 67
         $this->name     = $name;
68 68
         $this->versions = $versions;
69 69
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      * @return string
121 121
      */
122 122
     public function getPluginType() {
123
-        list($type, ) = $this->getNameParts();
123
+        list($type,) = $this->getNameParts();
124 124
 
125 125
         return $type;
126 126
     }
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
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      * @param integer                                             $maturity
84 84
      * @param \ComponentManager\ComponentSource\ComponentSource[] $sources
85 85
      */
86
-    public function __construct($version, $release, $maturity, $sources=null) {
86
+    public function __construct($version, $release, $maturity, $sources = null) {
87 87
         $this->version  = $version;
88 88
         $this->release  = $release;
89 89
         $this->maturity = $maturity;
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/PackageSource/GitPackageSource.php 1 patch
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.
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/Command/ProjectAwareCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      *
137 137
      * @return \ComponentManager\Moodle
138 138
      */
139
-    protected function getMoodle($moodleDirectory=null) {
139
+    protected function getMoodle($moodleDirectory = null) {
140 140
         if ($this->moodle === null) {
141 141
             $moodleDirectory = ($moodleDirectory === null)
142 142
                     ? $this->platform->getWorkingDirectory() : $moodleDirectory;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      *
156 156
      * @return \ComponentManager\Project\Project
157 157
      */
158
-    protected function getProject($projectFilename=null, $projectLockFilename=null) {
158
+    protected function getProject($projectFilename = null, $projectLockFilename = null) {
159 159
         $workingDirectory = $this->platform->getWorkingDirectory();
160 160
 
161 161
         if ($this->project === null) {
Please login to merge, or discard this patch.
lib/ComponentManager/PackageRepository/StashPackageRepository.php 1 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.