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.
Passed
Push — master ( 46cea7...8da5b6 )
by herry
03:05
created
src/AMQPManager.php 1 patch
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -153,7 +153,9 @@  discard block
 block discarded – undo
153 153
     protected function makeConnection(string $name)
154 154
     {
155 155
         $config = $this->configuration($name);
156
-        if (isset($config['host'])) $config = [$config];
156
+        if (isset($config['host'])) {
157
+            $config = [$config];
158
+        }
157 159
         return AMQPStreamConnection::create_connection($config);
158 160
     }
159 161
 
@@ -429,10 +431,15 @@  discard block
 block discarded – undo
429 431
 
430 432
         $channel->queue_bind($this->getQueue(), $this->getExchange(), $this->getRouteKey());
431 433
 
432
-        if ($message instanceof Message) $message->getMessage();
434
+        if ($message instanceof Message) {
435
+            $message->getMessage();
436
+        }
433 437
         if (!$message instanceof AMQPMessage) {
434
-            if ($message instanceof Collection) $message = $message->toJson();
435
-            elseif (is_array($message) || is_object($message)) $message = json_encode($message);
438
+            if ($message instanceof Collection) {
439
+                $message = $message->toJson();
440
+            } elseif (is_array($message) || is_object($message)) {
441
+                $message = json_encode($message);
442
+            }
436 443
             $message = new AMQPMessage($message, ['content_type' => 'text/plain', 'delivery_mode' => AMQPMessage::DELIVERY_MODE_PERSISTENT]);
437 444
         }
438 445
 
Please login to merge, or discard this patch.