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
Pull Request — master (#52)
by Rufus
02:37
created
src/CloudFlare/Request.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function perform($api, $path, array $data = null, $method = null)
43 43
     {
44
-        if (! isset($api->email, $api->auth_key) || false === filter_var($api->email, FILTER_VALIDATE_EMAIL)) {
44
+        if (!isset($api->email, $api->auth_key) || false === filter_var($api->email, FILTER_VALIDATE_EMAIL)) {
45 45
             throw new AuthenticationException(
46 46
                 'Authentication information must be provided'
47 47
             );
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
         //Removes null entries
54 54
         $data = array_filter(
55 55
             $data,
56
-            function ($val) {
56
+            function($val){
57 57
                 return null !== $val;
58 58
             }
59 59
         );
60 60
 
61
-        $url = 'https://api.cloudflare.com/client/v4/' . $path;
61
+        $url = 'https://api.cloudflare.com/client/v4/'.$path;
62 62
 
63 63
         $default_curl_options = [
64 64
             CURLOPT_VERBOSE        => false,
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
101 101
             curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
102 102
         } else {
103
-            $url .= '?' . http_build_query($data);
103
+            $url .= '?'.http_build_query($data);
104 104
         }
105 105
 
106 106
         curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         }
119 119
 
120 120
         $response = json_decode($http_result);
121
-        if (! $response) {
121
+        if (!$response) {
122 122
             $response          = new \stdClass();
123 123
             $response->success = false;
124 124
         }
Please login to merge, or discard this patch.