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
Branch master (d63410)
by herry
08:28
created
src/AMQPManager.php 1 patch
Braces   +8 added lines, -3 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
 
@@ -362,8 +364,11 @@  discard block
 block discarded – undo
362 364
         $channel->queue_bind($this->getQueue(), $this->getExchange());
363 365
 
364 366
         if (!$message instanceof AMQPMessage) {
365
-            if (is_array($message) || is_object($message)) $message = json_encode($message);
366
-            elseif ($message instanceof Collection) $message = $message->toJson();
367
+            if (is_array($message) || is_object($message)) {
368
+                $message = json_encode($message);
369
+            } elseif ($message instanceof Collection) {
370
+                $message = $message->toJson();
371
+            }
367 372
             $message = new AMQPMessage($message, ['content_type' => 'text/plain', 'delivery_mode' => AMQPMessage::DELIVERY_MODE_PERSISTENT]);
368 373
         }
369 374
 
Please login to merge, or discard this patch.