@@ -113,7 +113,8 @@ discard block |
||
| 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 | 118 | return $exp->isNull('expired_at'); |
| 118 | 119 | } |
| 119 | 120 | ); |
@@ -133,7 +134,8 @@ discard block |
||
| 133 | 134 | $query = $query->contain(['Shops']); |
| 134 | 135 | $query = $query->where(['api_key' => $apiKey, 'Shops.myshopify_domain' => $shopDomain]); |
| 135 | 136 | $query = $query->where( |
| 136 | - function ($exp, $q) { |
|
| 137 | + function ($exp, $q) |
|
| 138 | + { |
|
| 137 | 139 | return $exp->isNull('expired_at'); |
| 138 | 140 | } |
| 139 | 141 | ); |
@@ -66,7 +66,8 @@ |
||
| 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 | ); |