Passed
Push — main ( 992366...dd7998 )
by Dylan
02:08
created
src/App.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,9 @@
 block discarded – undo
44 44
      */
45 45
     public function getAPIChallenge(): string
46 46
     {
47
-        if (!$this->_api_challenge) $this->_api_challenge = Utils::create_random_string(128);
47
+        if (!$this->_api_challenge) {
48
+            $this->_api_challenge = Utils::create_random_string(128);
49
+        }
48 50
         return $this->_api_challenge;
49 51
     }
50 52
 
Please login to merge, or discard this patch.
src/Client.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,9 @@
 block discarded – undo
67 67
      */
68 68
     public function getSites(string $access_token = ''): array
69 69
     {
70
-        if (!$access_token) $access_token = $this->getAccessToken();
70
+        if (!$access_token) {
71
+            $access_token = $this->getAccessToken();
72
+        }
71 73
 
72 74
         $curl = new Curl($this->auth_url(self::SITES_URL), [
73 75
             'access_token' => $access_token
Please login to merge, or discard this patch.