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 ( 97fc4d...9f92c4 )
by herry
10:04
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
 
@@ -418,10 +420,15 @@  discard block
 block discarded – undo
418 420
         /** @var AMQPChannel $channel */
419 421
         list($connection, $channel) = $this->startConnection();
420 422
 
421
-        if ($message instanceof Message) $message->getMessage();
423
+        if ($message instanceof Message) {
424
+            $message->getMessage();
425
+        }
422 426
         if (!$message instanceof AMQPMessage) {
423
-            if ($message instanceof Collection) $message = $message->toJson();
424
-            elseif (is_array($message) || is_object($message)) $message = json_encode($message);
427
+            if ($message instanceof Collection) {
428
+                $message = $message->toJson();
429
+            } elseif (is_array($message) || is_object($message)) {
430
+                $message = json_encode($message);
431
+            }
425 432
             $message = new AMQPMessage($message, ['content_type' => 'text/plain', 'delivery_mode' => AMQPMessage::DELIVERY_MODE_PERSISTENT]);
426 433
         }
427 434
 
Please login to merge, or discard this patch.