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 ( a69aac...fea049 )
by herry
02:58
created
src/AMQPManager.php 1 patch
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,7 +108,9 @@  discard block
 block discarded – undo
108 108
     public function makeConnection(string $name)
109 109
     {
110 110
         $config = $this->configuration($name);
111
-        if (isset($config['host'])) $config = [$config];
111
+        if (isset($config['host'])) {
112
+            $config = [$config];
113
+        }
112 114
         return AMQPStreamConnection::create_connection($config);
113 115
     }
114 116
 
@@ -361,10 +363,15 @@  discard block
 block discarded – undo
361 363
 
362 364
         $channel->queue_bind($this->getQueue(), $this->getExchange());
363 365
 
364
-        if ($message instanceof Message) $message->getMessage();
366
+        if ($message instanceof Message) {
367
+            $message->getMessage();
368
+        }
365 369
         if (!$message instanceof AMQPMessage) {
366
-            if ($message instanceof Collection) $message = $message->toJson();
367
-            elseif (is_array($message) || is_object($message)) $message = json_encode($message);
370
+            if ($message instanceof Collection) {
371
+                $message = $message->toJson();
372
+            } elseif (is_array($message) || is_object($message)) {
373
+                $message = json_encode($message);
374
+            }
368 375
             $message = new AMQPMessage($message, ['content_type' => 'text/plain', 'delivery_mode' => AMQPMessage::DELIVERY_MODE_PERSISTENT]);
369 376
         }
370 377
 
Please login to merge, or discard this patch.