@@ -100,12 +100,12 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | // see: https://stackoverflow.com/a/37881509 |
| 103 | - $verifyUrl = 'https:'.$this->router->generate('codecloud_shopify_verify', [], UrlGeneratorInterface::NETWORK_PATH); |
|
| 103 | + $verifyUrl = 'https:' . $this->router->generate('codecloud_shopify_verify', [], UrlGeneratorInterface::NETWORK_PATH); |
|
| 104 | 104 | $nonce = uniqid(); |
| 105 | 105 | |
| 106 | 106 | $this->stores->preAuthenticateStore($storeName, $nonce); |
| 107 | 107 | |
| 108 | - $url = sprintf('https://%s/admin/oauth/authorize?', $storeName).http_build_query([ |
|
| 108 | + $url = sprintf('https://%s/admin/oauth/authorize?', $storeName) . http_build_query([ |
|
| 109 | 109 | 'client_id' => $this->config['api_key'], |
| 110 | 110 | 'scope' => $this->config['scope'], |
| 111 | 111 | 'redirect_uri' => $verifyUrl, |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | // this route may be loaded inside an iFrame, it is important to execute the redirect on the top frame |
| 116 | 116 | return new Response('<script> |
| 117 | - window.top.location.href = "'.$url.'"; |
|
| 117 | + window.top.location.href = "'.$url . '"; |
|
| 118 | 118 | </script> |
| 119 | 119 | ', Response::HTTP_OK, ['Content-Type', 'text/html']); |
| 120 | 120 | } |
@@ -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) |