Completed
Push — master ( 59e3b8...147766 )
by AJ
05:23
created
src/Controller/Component/ShopifyDatabaseComponent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         $shopEntity = $this->shops->findByMyshopifyDomain($domain)->first();
106 106
         if ($shopEntity->id) {
107
-            return (int)$shopEntity->id;
107
+            return (int) $shopEntity->id;
108 108
         } else {
109 109
             return false;
110 110
         }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $query = $this->access_tokens->find();
117 117
         $query = $query->contain(['Shops']);
118 118
         $query = $query->where(['api_key' => $apiKey, 'token' => $accessToken]);
119
-        $query = $query->where(function ($exp, $q) {
119
+        $query = $query->where(function($exp, $q) {
120 120
             return $exp->isNull('expired_at');
121 121
         });
122 122
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $query = $this->access_tokens->find();
136 136
         $query = $query->contain(['Shops']);
137 137
         $query = $query->where(['api_key' => $apiKey, 'Shops.myshopify_domain' => $shopDomain]);
138
-        $query = $query->where(function ($exp, $q) {
138
+        $query = $query->where(function($exp, $q) {
139 139
             return $exp->isNull('expired_at');
140 140
         });
141 141
 
Please login to merge, or discard this patch.
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/Shell/ShopifyInstallShell.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                 }
65 65
                 $scope = array_map('trim', $scope);
66 66
                 $scope = array_map('strtolower', $scope);
67
-                array_walk($scope, function (&$value) {
67
+                array_walk($scope, function(&$value) {
68 68
                     $value = str_replace(" ", "_", $value);
69 69
                 });
70 70
 
Please login to merge, or discard this patch.