Passed
Pull Request — master (#9)
by Daniel
03:07
created
src/Controller/OAuthController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,12 +100,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.