@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | public function supports(Request $request) |
28 | 28 | { |
29 | - return (bool) $this->getSessionId($request); |
|
29 | + return (bool)$this->getSessionId($request); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | private function getSessionId(Request $request) |
@@ -103,12 +103,12 @@ |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | // see: https://stackoverflow.com/a/37881509 |
106 | - $verifyUrl = 'https:'.$this->router->generate('codecloud_shopify_verify', [], UrlGeneratorInterface::NETWORK_PATH); |
|
106 | + $verifyUrl = 'https:' . $this->router->generate('codecloud_shopify_verify', [], UrlGeneratorInterface::NETWORK_PATH); |
|
107 | 107 | $nonce = uniqid(); |
108 | 108 | |
109 | 109 | $this->stores->preAuthenticateStore($storeName, $nonce); |
110 | 110 | |
111 | - $url = sprintf('https://%s/admin/oauth/authorize?', $storeName).http_build_query([ |
|
111 | + $url = sprintf('https://%s/admin/oauth/authorize?', $storeName) . http_build_query([ |
|
112 | 112 | 'client_id' => $this->config['api_key'], |
113 | 113 | 'scope' => $this->config['scope'], |
114 | 114 | 'redirect_uri' => $verifyUrl, |
@@ -9,7 +9,7 @@ |
||
9 | 9 | public function __construct(string $url) |
10 | 10 | { |
11 | 11 | parent::__construct('<script> |
12 | - window.top.location.href = "'.$url.'"; |
|
12 | + window.top.location.href = "'.$url . '"; |
|
13 | 13 | </script> |
14 | 14 | ', Response::HTTP_OK, ['Content-Type', 'text/html']); |
15 | 15 | } |