Passed
Push — develop ( 47057d...100e75 )
by Benjamin
05:14
created
src/services/Api.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         try {
75 75
             $pageAccessTokenResponse = $this->get('/'.$facebookInsightsObjectId, ['fields' => 'access_token']);
76 76
 
77
-            if(empty($pageAccessTokenResponse['access_token'])) {
77
+            if (empty($pageAccessTokenResponse['access_token'])) {
78 78
                 throw new \Exception('Couldn’t retrieve page access token for '.$facebookInsightsObjectId);
79 79
             }
80 80
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     private function getClient($accessToken = null): Client
115 115
     {
116
-        if(!$accessToken) {
116
+        if (!$accessToken) {
117 117
             $token = Facebook::$plugin->getOauth()->getToken();
118 118
             $accessToken = $token->getToken();
119 119
         }
Please login to merge, or discard this patch.
src/services/Oauth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             'refreshToken' => $token->getRefreshToken(),
81 81
             'resourceOwnerId' => $token->getResourceOwnerId(),
82 82
             'values' => $token->getValues(),
83
-        ];;
83
+        ]; ;
84 84
 
85 85
         return Facebook::$plugin->getAccounts()->saveAccount($account);
86 86
     }
Please login to merge, or discard this patch.
src/base/PluginTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,11 +88,11 @@
 block discarded – undo
88 88
         $oauthClientId = $this->getClientId();
89 89
         $oauthClientSecret = $this->getClientSecret();
90 90
 
91
-        if(!empty($oauthClientId) && !empty($oauthClientSecret))
91
+        if (!empty($oauthClientId) && !empty($oauthClientSecret))
92 92
         {
93 93
             $token = Facebook::$plugin->getOauth()->getToken();
94 94
 
95
-            if($token)
95
+            if ($token)
96 96
             {
97 97
                 return true;
98 98
             }
Please login to merge, or discard this patch.