GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#11)
by
unknown
36:49
created
src/Bus.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -128,15 +128,15 @@  discard block
 block discarded – undo
128 128
         $dependencies = [];
129 129
         $class = new ReflectionClass($command);
130 130
         foreach ($class->getConstructor()->getParameters() as $parameter) {
131
-            if ( $parameter->getPosition() == 0 && $parameter->isArray() ) {
132
-                if ($input !== []){
131
+            if ($parameter->getPosition() == 0 && $parameter->isArray()) {
132
+                if ($input !== []) {
133 133
                     $dependencies[] = $input;
134 134
                 } else {
135 135
                     $dependencies[] = $this->getDefaultValueOrFail($parameter);
136 136
                 }
137 137
             } else {
138 138
                 $name = $parameter->getName();
139
-                if ( array_key_exists($name, $input) ){
139
+                if (array_key_exists($name, $input)) {
140 140
                     $dependencies[] = $input[$name];
141 141
                 } else {
142 142
                     $dependencies[] = $this->getDefaultValueOrFail($parameter);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     private function getDefaultValueOrFail($parameter)
157 157
     {
158 158
         $isDefaultValueAvailable = $parameter->isDefaultValueAvailable();
159
-        if ( ! $isDefaultValueAvailable )
159
+        if (!$isDefaultValueAvailable)
160 160
             throw new InvalidArgumentException("Unable to map input to command: {$parameter->getName()}");
161 161
 
162 162
         return $parameter->getDefaultValue();
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,8 +156,9 @@
 block discarded – undo
156 156
     private function getDefaultValueOrFail($parameter)
157 157
     {
158 158
         $isDefaultValueAvailable = $parameter->isDefaultValueAvailable();
159
-        if ( ! $isDefaultValueAvailable )
160
-            throw new InvalidArgumentException("Unable to map input to command: {$parameter->getName()}");
159
+        if ( ! $isDefaultValueAvailable ) {
160
+                    throw new InvalidArgumentException("Unable to map input to command: {$parameter->getName()}");
161
+        }
161 162
 
162 163
         return $parameter->getDefaultValue();
163 164
     }
Please login to merge, or discard this patch.