@@ -74,7 +74,7 @@ discard block |
||
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 |
||
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 | } |
@@ -80,7 +80,7 @@ |
||
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 | } |
@@ -88,11 +88,11 @@ |
||
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 | } |