Completed
Pull Request — master (#9)
by Hugo
01:41
created
src/Util/UploadFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     public function getContent(): string
45 45
     {
46 46
         if (null === $this->content) {
47
-            set_error_handler(function ($type, $msg) use (&$error) { $error = $msg; });
47
+            set_error_handler(function($type, $msg) use (&$error) { $error = $msg; });
48 48
             $content = file_get_contents($this->path);
49 49
             restore_error_handler();
50 50
 
Please login to merge, or discard this patch.
src/Client/GraphQLClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,14 +79,14 @@
 block discarded – undo
79 79
         try {
80 80
             $response = $this->sendRequest($request);
81 81
             $contents = $this->extractJson($request, $response);
82
-        } catch (AuthenticationException $e) {
82
+        }catch (AuthenticationException $e) {
83 83
             // Maybe API Token has expired? Clear it, then try to fetch a new API Token
84 84
             $this->authClient->clearApiToken();
85 85
             $this->authClient->auth();
86 86
             try {
87 87
                 $response = $this->sendRequest($request);
88 88
                 $contents = $this->extractJson($request, $response);
89
-            } catch (AuthenticationException $e) {
89
+            }catch (AuthenticationException $e) {
90 90
                 throw $e;
91 91
             }
92 92
         }
Please login to merge, or discard this patch.