@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | $url .= '&redirect_uri=' . urlencode($redirectUrl); |
| 185 | 185 | $url .= '&state=' . $this->getNonce($shopDomain); |
| 186 | 186 | |
| 187 | - return $url; |
|
| 187 | + return $url; |
|
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | /** |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | $url = str_replace('&', '%26', $url); |
| 286 | 286 | $url = str_replace('%', '%25', $url); |
| 287 | 287 | |
| 288 | - return $url; |
|
| 288 | + return $url; |
|
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | /** |
@@ -110,7 +110,8 @@ discard block |
||
| 110 | 110 | $query = $this->access_tokens->find(); |
| 111 | 111 | $query = $query->contain(['Shops']); |
| 112 | 112 | $query = $query->where(['api_key' => $apiKey, 'token' => $accessToken]); |
| 113 | - $query = $query->where(function($exp, $q) { |
|
| 113 | + $query = $query->where(function($exp, $q) |
|
| 114 | + { |
|
| 114 | 115 | return $exp->isNull('expired_at'); |
| 115 | 116 | }); |
| 116 | 117 | |
@@ -128,7 +129,8 @@ discard block |
||
| 128 | 129 | $query = $this->access_tokens->find(); |
| 129 | 130 | $query = $query->contain(['Shops']); |
| 130 | 131 | $query = $query->where(['api_key' => $apiKey, 'Shops.myshopify_domain' => $shopDomain]); |
| 131 | - $query = $query->where(function($exp, $q) { |
|
| 132 | + $query = $query->where(function($exp, $q) |
|
| 133 | + { |
|
| 132 | 134 | return $exp->isNull('expired_at'); |
| 133 | 135 | }); |
| 134 | 136 | |
@@ -64,7 +64,8 @@ |
||
| 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 | 69 | $value = str_replace(" ", "_", $value); |
| 69 | 70 | }); |
| 70 | 71 | |