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
Branch master (c188f7)
by Romain
05:38
created
src/Strime/Slackify/Webhooks/Webhook.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
             if(!in_array($key, $valid_values)) {
77 77
                 unset($values[$key]);
78
-            }
79
-            else {
78
+            } else {
80 79
                 switch ($key) {
81 80
                     default:
82 81
                         if (!is_string($value)) {
@@ -124,8 +123,7 @@  discard block
 block discarded – undo
124 123
 
125 124
             if((strcmp(substr($values["icon"], 0, 1), ":") == 0) && (strcmp(substr($values["icon"], -1), ":") == 0)) {
126 125
                 $icon_type = "emoji";
127
-            }
128
-            else {
126
+            } else {
129 127
                 $icon_type = "url";
130 128
             }
131 129
 
@@ -149,8 +147,7 @@  discard block
 block discarded – undo
149 147
             ]);
150 148
             $curl_status = $json_response->getStatusCode();
151 149
             $response = json_decode( $json_response->getBody() );
152
-        }
153
-        catch(RequestException $e) {
150
+        } catch(RequestException $e) {
154 151
             throw new RuntimeException('The request to the webhook failed: '.$e->getMessage(), $e->getCode(), $e);
155 152
         }
156 153
 
Please login to merge, or discard this patch.