@@ -161,6 +161,6 @@ |
||
161 | 161 | protected function convertHMSToDateInterval($hmsTime) |
162 | 162 | { |
163 | 163 | $parts = explode(':', $hmsTime); |
164 | - return 'PT' . $parts[0] . 'H' . $parts[1] . 'M' . $parts[2] . 'S'; |
|
164 | + return 'PT' . $parts[ 0 ] . 'H' . $parts[ 1 ] . 'M' . $parts[ 2 ] . 'S'; |
|
165 | 165 | } |
166 | 166 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $this->logger = $logger; |
47 | 47 | $this->extractionPaths = array_merge( |
48 | 48 | $this->extractionPaths, |
49 | - ['id' => 'string(@id)'] |
|
49 | + [ 'id' => 'string(@id)' ] |
|
50 | 50 | ); |
51 | 51 | } |
52 | 52 | |
@@ -63,6 +63,6 @@ discard block |
||
63 | 63 | |
64 | 64 | protected function getRootAttributes() |
65 | 65 | { |
66 | - return ['id' => $this->getId()]; |
|
66 | + return [ 'id' => $this->getId() ]; |
|
67 | 67 | } |
68 | 68 | } |
@@ -147,7 +147,7 @@ |
||
147 | 147 | |
148 | 148 | protected function getRootAttributes() |
149 | 149 | { |
150 | - return []; |
|
150 | + return [ ]; |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | protected function getXmlNamespace() |
@@ -77,7 +77,7 @@ |
||
77 | 77 | { |
78 | 78 | return array_merge( |
79 | 79 | parent::getRootAttributes(), |
80 | - ['remainingQuantity' => $this->getRemainingQuantity()] |
|
80 | + [ 'remainingQuantity' => $this->getRemainingQuantity() ] |
|
81 | 81 | ); |
82 | 82 | } |
83 | 83 |
@@ -122,7 +122,7 @@ |
||
122 | 122 | |
123 | 123 | protected function getRootAttributes() |
124 | 124 | { |
125 | - return []; |
|
125 | + return [ ]; |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | protected function serializeContents() |
@@ -148,8 +148,8 @@ |
||
148 | 148 | 'feesAmount' => $this->getFeesAmount(), |
149 | 149 | 'discountAmount' => $this->getDiscountAmount(), |
150 | 150 | ]; |
151 | - $qualifyAttributes = function ($name) use ($attrs) { |
|
152 | - return sprintf('%s="%s"', $name, $this->formatAmount($attrs[$name] ?: 0)); |
|
151 | + $qualifyAttributes = function($name) use ($attrs) { |
|
152 | + return sprintf('%s="%s"', $name, $this->formatAmount($attrs[ $name ] ?: 0)); |
|
153 | 153 | }; |
154 | 154 | $qualifiedAttributes = array_map($qualifyAttributes, array_keys($attrs)); |
155 | 155 | return '<OrderSummary ' . implode(' ', $qualifiedAttributes) . '/>'; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $this->optionalExtractionPaths = [ |
60 | 60 | 'shipmentMethodDisplayText' => 'x:ShipmentMethod/@displayText', |
61 | 61 | ]; |
62 | - $this->subpayloadExtractionPaths = ['orderItems' => 'x:OrderConfirmedOrderItems']; |
|
62 | + $this->subpayloadExtractionPaths = [ 'orderItems' => 'x:OrderConfirmedOrderItems' ]; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | protected function serializeContents() |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | protected function getRootAttributes() |
78 | 78 | { |
79 | - return []; |
|
79 | + return [ ]; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | protected function getXmlNamespace() |
@@ -112,6 +112,6 @@ |
||
112 | 112 | |
113 | 113 | protected function getRootAttributes() |
114 | 114 | { |
115 | - return ['type' => $this->getType(), 'display' => $this->getDisplay()]; |
|
115 | + return [ 'type' => $this->getType(), 'display' => $this->getDisplay() ]; |
|
116 | 116 | } |
117 | 117 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | { |
84 | 84 | return array_merge( |
85 | 85 | parent::getRootAttributes(), |
86 | - ['shippedQuantity' => $this->getShippedQuantity()] |
|
86 | + [ 'shippedQuantity' => $this->getShippedQuantity() ] |
|
87 | 87 | ); |
88 | 88 | } |
89 | 89 |