@@ -23,7 +23,8 @@ public function __construct(OrderReferenceGeneratorInterface $generator)
2323 /**
2424 * Execute the action.
2525 *
26- * @param \GetCandy\Models\Cart $cart
26+ * @param \GetCandy\Models\Cart $cart
27+ *
2728 * @return void
2829 */
2930 public function execute (
@@ -56,9 +57,9 @@ public function execute(
5657 'tax_breakdown ' => $ cart ->taxBreakdown ->map (function ($ tax ) {
5758 return [
5859 'description ' => $ tax ['description ' ],
59- 'identifier ' => $ tax ['identifier ' ],
60- 'percentage ' => $ tax ['amounts ' ]->sum ('percentage ' ),
61- 'total ' => $ tax ['total ' ]->value ,
60+ 'identifier ' => $ tax ['identifier ' ],
61+ 'percentage ' => $ tax ['amounts ' ]->sum ('percentage ' ),
62+ 'total ' => $ tax ['total ' ]->value ,
6263 ];
6364 })->values (),
6465 'tax_total ' => $ cart ->taxTotal ->value ,
@@ -87,9 +88,9 @@ public function execute(
8788 'tax_breakdown ' => $ line ->taxBreakdown ->amounts ->map (function ($ amount ) {
8889 return [
8990 'description ' => $ amount ->description ,
90- 'identifier ' => $ amount ->identifier ,
91- 'percentage ' => $ amount ->percentage ,
92- 'total ' => $ amount ->price ->value ,
91+ 'identifier ' => $ amount ->identifier ,
92+ 'percentage ' => $ amount ->percentage ,
93+ 'total ' => $ amount ->price ->value ,
9394 ];
9495 })->values (),
9596 'tax_total ' => $ line ->taxAmount ->value ,
@@ -127,9 +128,9 @@ public function execute(
127128 'tax_breakdown ' => $ shippingAddress ->taxBreakdown ->amounts ->map (function ($ amount ) {
128129 return [
129130 'description ' => $ amount ->description ,
130- 'identifier ' => $ amount ->identifier ,
131- 'percentage ' => $ amount ->percentage ,
132- 'total ' => $ amount ->price ->value ,
131+ 'identifier ' => $ amount ->identifier ,
132+ 'percentage ' => $ amount ->percentage ,
133+ 'total ' => $ amount ->price ->value ,
133134 ];
134135 })->values (),
135136 'tax_total ' => $ shippingAddress ->shippingTaxTotal ->value ,
0 commit comments