File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function get(): array
5555 'tax ' => $ this ->priceFormatter ->format ((float )$ order ->getTaxAmount ()),
5656 'shipping ' => $ this ->priceFormatter ->format ((float )$ order ->getShippingAmount ()),
5757 'coupon ' => $ order ->getCouponCode (),
58- 'payment_method ' => $ order ->getPayment () ? $ order ->getPayment ()->getMethod () ? '' ,
58+ 'payment_method ' => $ order ->getPayment () ? $ order ->getPayment ()->getMethod () : '' ,
5959 'items ' => $ this ->orderItems ->setOrder ($ order )->get (),
6060 ]
6161 ];
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public function get(): array
4242 'tax ' => $ this ->priceFormatter ->format ((float )$ order ->getTaxAmount ()),
4343 'shipping ' => $ this ->priceFormatter ->format ((float )$ order ->getShippingAmount ()),
4444 'coupon ' => $ order ->getCouponCode (),
45- 'payment_method ' => $ order ->getPayment () ? $ order ->getPayment ()->getMethod () ? '' ,
45+ 'payment_method ' => $ order ->getPayment () ? $ order ->getPayment ()->getMethod () : '' ,
4646 'items ' => $ this ->orderItems ->setOrder ($ order )->get (),
4747 ]
4848 ];
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public function mapByOrder(OrderInterface $order): array
6161 'coupon ' => $ order ->getCouponCode (),
6262 'date ' => date ("Y-m-d " , strtotime ($ order ->getCreatedAt ())),
6363 'paymentType ' => $ this ->getPaymentType ($ order ),
64- 'payment_method ' => $ order ->getPayment () ? $ order ->getPayment ()->getMethod () ? '' ,
64+ 'payment_method ' => $ order ->getPayment () ? $ order ->getPayment ()->getMethod () : '' ,
6565 'customer ' => $ this ->getCustomerData ($ order ),
6666 ];
6767 }
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function merge(): array
4747 'affiliation ' => $ this ->config ->getStoreName (),
4848 'transaction_id ' => $ order ->getIncrementId (),
4949 'coupon ' => $ order ->getCouponCode (),
50- 'payment_method ' => $ order ->getPayment () ? $ order ->getPayment ()->getMethod () ? ''
50+ 'payment_method ' => $ order ->getPayment () ? $ order ->getPayment ()->getMethod () : ''
5151 ];
5252 }
5353
You can’t perform that action at this time.
0 commit comments