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