@@ -89,7 +89,7 @@ |
||
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - $this->io->write('Connecting the "' . $channel->getName() . '" store with is_syncing = '.($isSyncing?'true':'false').'...'); |
|
| 92 | + $this->io->write('Connecting the "' . $channel->getName() . '" store with is_syncing = ' . ($isSyncing ? 'true' : 'false') . '...'); |
|
| 93 | 93 | |
| 94 | 94 | try { |
| 95 | 95 | $response = $this->storeRegisterHandler->register($channel, $isSyncing); |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | |
| 101 | 101 | $lastCompletedPayment = $order->getLastPayment(PaymentInterface::STATE_COMPLETED); |
| 102 | 102 | /** @var \DateTime $orderCompletedDate */ |
| 103 | - $orderCompletedDate = $lastCompletedPayment?$lastCompletedPayment->getUpdatedAt():$order->getUpdatedAt(); |
|
| 103 | + $orderCompletedDate = $lastCompletedPayment ? $lastCompletedPayment->getUpdatedAt() : $order->getUpdatedAt(); |
|
| 104 | 104 | |
| 105 | 105 | $data = [ |
| 106 | 106 | 'id' => $orderId, |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | /** @var ChannelInterface|null $subscribedChannel */ |
| 108 | 108 | $subscribedChannel = null; |
| 109 | 109 | try { |
| 110 | - $subscribedChannel = (true === $customer->isSubscribedToNewsletter())?$this->channelContext->getChannel():null; |
|
| 110 | + $subscribedChannel = (true === $customer->isSubscribedToNewsletter()) ? $this->channelContext->getChannel() : null; |
|
| 111 | 111 | } catch (\Exception $e) { |
| 112 | 112 | } |
| 113 | 113 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $response = $this->post('ecommerce/stores', $data); |
| 38 | 38 | |
| 39 | - $this->logger->info('add_store: '.json_encode($response)); |
|
| 39 | + $this->logger->info('add_store: ' . json_encode($response)); |
|
| 40 | 40 | |
| 41 | 41 | return $response; |
| 42 | 42 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $response = $this->get('ecommerce/stores'); |
| 50 | 50 | |
| 51 | - $this->logger->info('get_stores: '.json_encode($response)); |
|
| 51 | + $this->logger->info('get_stores: ' . json_encode($response)); |
|
| 52 | 52 | |
| 53 | 53 | return $response; |
| 54 | 54 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | $response = $this->get('ecommerce/stores/' . $storeId); |
| 62 | 62 | |
| 63 | - $this->logger->info('get_store: '.json_encode($response)); |
|
| 63 | + $this->logger->info('get_store: ' . json_encode($response)); |
|
| 64 | 64 | |
| 65 | 65 | return $response; |
| 66 | 66 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $response = $this->patch('ecommerce/stores/' . $storeId, $data); |
| 74 | 74 | |
| 75 | - $this->logger->info('update_store: '.json_encode($response)); |
|
| 75 | + $this->logger->info('update_store: ' . json_encode($response)); |
|
| 76 | 76 | |
| 77 | 77 | return $response; |
| 78 | 78 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | $response = $this->delete('ecommerce/stores/' . $storeId); |
| 86 | 86 | |
| 87 | - $this->logger->info('remove_store: '.json_encode($response)); |
|
| 87 | + $this->logger->info('remove_store: ' . json_encode($response)); |
|
| 88 | 88 | |
| 89 | 89 | return $response; |
| 90 | 90 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | { |
| 97 | 97 | $response = $this->post('ecommerce/stores/' . $storeId . '/customers', $data); |
| 98 | 98 | |
| 99 | - $this->logger->info('add_customer: '.json_encode($response)); |
|
| 99 | + $this->logger->info('add_customer: ' . json_encode($response)); |
|
| 100 | 100 | |
| 101 | 101 | return $response; |
| 102 | 102 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | { |
| 109 | 109 | $response = $this->get('ecommerce/stores/' . $storeId . '/customers'); |
| 110 | 110 | |
| 111 | - $this->logger->info('get_customers: '.json_encode($response)); |
|
| 111 | + $this->logger->info('get_customers: ' . json_encode($response)); |
|
| 112 | 112 | |
| 113 | 113 | return $response; |
| 114 | 114 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | { |
| 121 | 121 | $response = $this->get('ecommerce/stores/' . $storeId . '/customers/' . $customerId); |
| 122 | 122 | |
| 123 | - $this->logger->info('get_customer: '.json_encode($response)); |
|
| 123 | + $this->logger->info('get_customer: ' . json_encode($response)); |
|
| 124 | 124 | |
| 125 | 125 | return $response; |
| 126 | 126 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | { |
| 133 | 133 | $response = $this->patch('ecommerce/stores/' . $storeId . '/customers/' . $customerId, $data); |
| 134 | 134 | |
| 135 | - $this->logger->info('update_customer: '.json_encode($response)); |
|
| 135 | + $this->logger->info('update_customer: ' . json_encode($response)); |
|
| 136 | 136 | |
| 137 | 137 | return $response; |
| 138 | 138 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | { |
| 145 | 145 | $response = $this->delete('ecommerce/stores/' . $storeId . '/customers/' . $customerId); |
| 146 | 146 | |
| 147 | - $this->logger->info('remove_customer: '.json_encode($response)); |
|
| 147 | + $this->logger->info('remove_customer: ' . json_encode($response)); |
|
| 148 | 148 | |
| 149 | 149 | return $response; |
| 150 | 150 | } |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | { |
| 157 | 157 | $response = $this->post('ecommerce/stores/' . $storeId . '/products', $data); |
| 158 | 158 | |
| 159 | - $this->logger->info('add_product: '.json_encode($response)); |
|
| 159 | + $this->logger->info('add_product: ' . json_encode($response)); |
|
| 160 | 160 | |
| 161 | 161 | return $response; |
| 162 | 162 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | { |
| 169 | 169 | $response = $this->get('ecommerce/stores/' . $storeId . '/products'); |
| 170 | 170 | |
| 171 | - $this->logger->info('get_products: '.json_encode($response)); |
|
| 171 | + $this->logger->info('get_products: ' . json_encode($response)); |
|
| 172 | 172 | |
| 173 | 173 | return $response; |
| 174 | 174 | } |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | { |
| 181 | 181 | $response = $this->get('ecommerce/stores/' . $storeId . '/products/' . $productId); |
| 182 | 182 | |
| 183 | - $this->logger->info('get_product: '.json_encode($response)); |
|
| 183 | + $this->logger->info('get_product: ' . json_encode($response)); |
|
| 184 | 184 | |
| 185 | 185 | return $response; |
| 186 | 186 | } |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | { |
| 193 | 193 | $response = $this->patch('ecommerce/stores/' . $storeId . '/products/' . $productId, $data); |
| 194 | 194 | |
| 195 | - $this->logger->info('update_product: '.json_encode($response)); |
|
| 195 | + $this->logger->info('update_product: ' . json_encode($response)); |
|
| 196 | 196 | |
| 197 | 197 | return $response; |
| 198 | 198 | } |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | { |
| 205 | 205 | $response = $this->delete('ecommerce/stores/' . $storeId . '/products/' . $productId); |
| 206 | 206 | |
| 207 | - $this->logger->info('remove_product: '.json_encode($response)); |
|
| 207 | + $this->logger->info('remove_product: ' . json_encode($response)); |
|
| 208 | 208 | |
| 209 | 209 | return $response; |
| 210 | 210 | } |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | { |
| 217 | 217 | $response = $this->post('ecommerce/stores/' . $storeId . '/orders', $data); |
| 218 | 218 | |
| 219 | - $this->logger->info('add_order: '.json_encode($response)); |
|
| 219 | + $this->logger->info('add_order: ' . json_encode($response)); |
|
| 220 | 220 | |
| 221 | 221 | return $response; |
| 222 | 222 | } |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | { |
| 229 | 229 | $response = $this->get('ecommerce/orders'); |
| 230 | 230 | |
| 231 | - $this->logger->info('get_orders: '.json_encode($response)); |
|
| 231 | + $this->logger->info('get_orders: ' . json_encode($response)); |
|
| 232 | 232 | |
| 233 | 233 | return $response; |
| 234 | 234 | } |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | { |
| 241 | 241 | $response = $this->get('ecommerce/stores/' . $storeId . '/orders'); |
| 242 | 242 | |
| 243 | - $this->logger->info('get_order_by_store: '.json_encode($response)); |
|
| 243 | + $this->logger->info('get_order_by_store: ' . json_encode($response)); |
|
| 244 | 244 | |
| 245 | 245 | return $response; |
| 246 | 246 | } |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | { |
| 253 | 253 | $response = $this->get('ecommerce/stores/' . $storeId . '/orders/' . $orderId); |
| 254 | 254 | |
| 255 | - $this->logger->info('get_order: '.json_encode($response)); |
|
| 255 | + $this->logger->info('get_order: ' . json_encode($response)); |
|
| 256 | 256 | |
| 257 | 257 | return $response; |
| 258 | 258 | } |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | { |
| 265 | 265 | $response = $this->patch('ecommerce/stores/' . $storeId . '/orders/' . $orderId, $data); |
| 266 | 266 | |
| 267 | - $this->logger->info('update_order: '.json_encode($response)); |
|
| 267 | + $this->logger->info('update_order: ' . json_encode($response)); |
|
| 268 | 268 | |
| 269 | 269 | return $response; |
| 270 | 270 | } |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | { |
| 277 | 277 | $response = $this->delete('ecommerce/stores/' . $storeId . '/orders/' . $orderId); |
| 278 | 278 | |
| 279 | - $this->logger->info('remove_order: '.json_encode($response)); |
|
| 279 | + $this->logger->info('remove_order: ' . json_encode($response)); |
|
| 280 | 280 | |
| 281 | 281 | return $response; |
| 282 | 282 | } |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | { |
| 289 | 289 | $response = $this->post('ecommerce/stores/' . $storeId . '/carts', $data); |
| 290 | 290 | |
| 291 | - $this->logger->info('add_cart: '.json_encode($response)); |
|
| 291 | + $this->logger->info('add_cart: ' . json_encode($response)); |
|
| 292 | 292 | |
| 293 | 293 | return $response; |
| 294 | 294 | } |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | { |
| 301 | 301 | $response = $this->get('ecommerce/stores/' . $storeId . '/carts'); |
| 302 | 302 | |
| 303 | - $this->logger->info('get_carts: '.json_encode($response)); |
|
| 303 | + $this->logger->info('get_carts: ' . json_encode($response)); |
|
| 304 | 304 | |
| 305 | 305 | return $response; |
| 306 | 306 | } |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | { |
| 313 | 313 | $response = $this->get('ecommerce/stores/' . $storeId . '/carts/' . $cartId); |
| 314 | 314 | |
| 315 | - $this->logger->info('get_cart: '.json_encode($response)); |
|
| 315 | + $this->logger->info('get_cart: ' . json_encode($response)); |
|
| 316 | 316 | |
| 317 | 317 | return $response; |
| 318 | 318 | } |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | { |
| 325 | 325 | $response = $this->patch('ecommerce/stores/' . $storeId . '/carts/' . $cartId, $data); |
| 326 | 326 | |
| 327 | - $this->logger->info('update_cart: '.json_encode($response)); |
|
| 327 | + $this->logger->info('update_cart: ' . json_encode($response)); |
|
| 328 | 328 | |
| 329 | 329 | return $response; |
| 330 | 330 | } |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | { |
| 337 | 337 | $response = $this->delete('ecommerce/stores/' . $storeId . '/carts/' . $cartId); |
| 338 | 338 | |
| 339 | - $this->logger->info('remove_cart: '.json_encode($response)); |
|
| 339 | + $this->logger->info('remove_cart: ' . json_encode($response)); |
|
| 340 | 340 | |
| 341 | 341 | return $response; |
| 342 | 342 | } |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $response = $this->post('lists/' . $listId . '/members', $data); |
| 38 | 38 | |
| 39 | - $this->logger->info('add_member: '.json_encode($response)); |
|
| 39 | + $this->logger->info('add_member: ' . json_encode($response)); |
|
| 40 | 40 | |
| 41 | 41 | return $response; |
| 42 | 42 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $response = $this->get('lists/' . $listId . '/members/' . $hash); |
| 50 | 50 | |
| 51 | - $this->logger->info('get_member: '.json_encode($response)); |
|
| 51 | + $this->logger->info('get_member: ' . json_encode($response)); |
|
| 52 | 52 | |
| 53 | 53 | return $response; |
| 54 | 54 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | $response = $this->patch('lists/' . $listId . '/members/' . $hash, $data); |
| 62 | 62 | |
| 63 | - $this->logger->info('update_member: '.json_encode($response)); |
|
| 63 | + $this->logger->info('update_member: ' . json_encode($response)); |
|
| 64 | 64 | |
| 65 | 65 | return $response; |
| 66 | 66 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $response = $this->delete('lists/' . $listId . '/members/' . $hash); |
| 74 | 74 | |
| 75 | - $this->logger->info('remove_member: '.json_encode($response)); |
|
| 75 | + $this->logger->info('remove_member: ' . json_encode($response)); |
|
| 76 | 76 | |
| 77 | 77 | return $response; |
| 78 | 78 | } |