@@ -44,7 +44,7 @@ |
||
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 |
@@ -79,14 +79,14 @@ |
||
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 | } |