@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function init() |
112 | 112 | { |
113 | - require_once BASE_PATH . '/vendor/campaignmonitor/createsend-php/csrest_lists.php'; |
|
113 | + require_once BASE_PATH.'/vendor/campaignmonitor/createsend-php/csrest_lists.php'; |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
@@ -179,9 +179,9 @@ discard block |
||
179 | 179 | //$expires_in = $result->response->expires_in; |
180 | 180 | // Save $access_token, $expires_in, and $refresh_token. |
181 | 181 | if ($this->debug) { |
182 | - echo 'access token: ' . $result->response->access_token . "\n"; |
|
183 | - echo 'expires in (seconds): ' . $result->response->expires_in . "\n"; |
|
184 | - echo 'refresh token: ' . $result->response->refresh_token . "\n"; |
|
182 | + echo 'access token: '.$result->response->access_token."\n"; |
|
183 | + echo 'expires in (seconds): '.$result->response->expires_in."\n"; |
|
184 | + echo 'refresh token: '.$result->response->refresh_token."\n"; |
|
185 | 185 | } |
186 | 186 | } else { |
187 | 187 | // If you receive '121: Expired OAuth Token', refresh the access token |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | if ($result->was_successful()) { |
232 | 232 | echo '<h2>SUCCESS</h2>'; |
233 | 233 | } else { |
234 | - echo '<h2>FAILURE: ' . $result->http_status_code . '</h2>'; |
|
234 | + echo '<h2>FAILURE: '.$result->http_status_code.'</h2>'; |
|
235 | 235 | } |
236 | 236 | echo '<pre>'; |
237 | 237 | print_r($result); |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | return true; |
257 | 257 | } |
258 | 258 | $this->httpStatusCode = $result->http_status_code; |
259 | - self::$error_description = serialize($result) . ' --- --- ' . serialize($apiCall) . ' --- --- ' . serialize($description); |
|
259 | + self::$error_description = serialize($result).' --- --- '.serialize($apiCall).' --- --- '.serialize($description); |
|
260 | 260 | self::$error_code = $result->http_status_code; |
261 | 261 | |
262 | 262 | return null; |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | |
299 | 299 | protected function getCache() |
300 | 300 | { |
301 | - return Injector::inst()->get(CacheInterface::class . '.CampaignMonitor'); |
|
301 | + return Injector::inst()->get(CacheInterface::class.'.CampaignMonitor'); |
|
302 | 302 | } |
303 | 303 | |
304 | 304 | public function getApiKey(): string |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | } |
335 | 335 | $var = trim($var); |
336 | 336 | if (!$var && false === $allowToBeEmpty) { |
337 | - user_error('Please set .env var ' . $envVar . ' (recommended) or config var ' . $configVar, E_USER_NOTICE); |
|
337 | + user_error('Please set .env var '.$envVar.' (recommended) or config var '.$configVar, E_USER_NOTICE); |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | return $var; |