Completed
Push — master ( de328f...0f2278 )
by AJ
05:38
created
src/Controller/Component/ShopifyAPIComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
     {
148 148
         $params = explode("/", $this->response->getHeaderLine('http_x_shopify_shop_api_call_limit'));
149 149
 
150
-        return (int)$params[$index];
150
+        return (int) $params[$index];
151 151
     }
152 152
 
153 153
     public function getAuthorizeUrl($shopDomain, $redirectUrl)
Please login to merge, or discard this patch.
src/Controller/Component/ShopifyDatabaseComponent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $shopEntity = $this->shops->findByMyshopifyDomain($domain)->first();
103 103
         if ($shopEntity->id) {
104
-            return (int)$shopEntity->id;
104
+            return (int) $shopEntity->id;
105 105
         } else {
106 106
             return false;
107 107
         }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $query = $query->contain(['Shops']);
114 114
         $query = $query->where(['api_key' => $apiKey, 'token' => $accessToken]);
115 115
         $query = $query->where(
116
-            function ($exp, $q) {
116
+            function($exp, $q) {
117 117
                 return $exp->isNull('expired_at');
118 118
             }
119 119
         );
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $query = $query->contain(['Shops']);
134 134
         $query = $query->where(['api_key' => $apiKey, 'Shops.myshopify_domain' => $shopDomain]);
135 135
         $query = $query->where(
136
-            function ($exp, $q) {
136
+            function($exp, $q) {
137 137
                 return $exp->isNull('expired_at');
138 138
             }
139 139
         );
Please login to merge, or discard this patch.
src/Shell/ShopifyInstallShell.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                 $scope = array_map('strtolower', $scope);
67 67
                 array_walk(
68 68
                     $scope,
69
-                    function (&$value) {
69
+                    function(&$value) {
70 70
                         $value = str_replace(" ", "_", $value);
71 71
                     }
72 72
                 );
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,8 @@
 block discarded – undo
66 66
                 $scope = array_map('strtolower', $scope);
67 67
                 array_walk(
68 68
                     $scope,
69
-                    function (&$value) {
69
+                    function (&$value)
70
+                    {
70 71
                         $value = str_replace(" ", "_", $value);
71 72
                     }
72 73
                 );
Please login to merge, or discard this patch.