@@ -123,9 +123,9 @@ |
||
123 | 123 | */ |
124 | 124 | protected function getRootAttributes() |
125 | 125 | { |
126 | - $attrs = ['xmlns' => $this->getXmlNamespace()]; |
|
126 | + $attrs = [ 'xmlns' => $this->getXmlNamespace() ]; |
|
127 | 127 | if ($this->getReservationId()) { |
128 | - $attrs['reservationId'] = $this->cleanString($this->getReservationId(), 40); |
|
128 | + $attrs[ 'reservationId' ] = $this->cleanString($this->getReservationId(), 40); |
|
129 | 129 | } |
130 | 130 | return $attrs; |
131 | 131 | } |
@@ -19,7 +19,6 @@ |
||
19 | 19 | use eBayEnterprise\RetailOrderManagement\Payload\IPayloadMap; |
20 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator; |
21 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
22 | -use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
|
23 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TTopLevelPayload; |
24 | 23 | use Psr\Log\LoggerInterface; |
25 | 24 |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload; |
17 | 17 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | $parentPayload |
55 | 55 | ); |
56 | 56 | |
57 | - unset($this->optionalExtractionPaths['shippingMethodMode']); |
|
58 | - unset($this->optionalExtractionPaths['shippingMethodDisplayText']); |
|
57 | + unset($this->optionalExtractionPaths[ 'shippingMethodMode' ]); |
|
58 | + unset($this->optionalExtractionPaths[ 'shippingMethodDisplayText' ]); |
|
59 | 59 | } |
60 | 60 | } |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload; |
17 | 17 |
@@ -66,8 +66,7 @@ |
||
66 | 66 | |
67 | 67 | protected function serializeGiftWrapRequested() |
68 | 68 | { |
69 | - return is_null($this->getGiftWrapRequested()) ? '' : |
|
70 | - "<GiftwrapRequested>{$this->convertBooleanToString($this->getGiftWrapRequested())}</GiftwrapRequested>"; |
|
69 | + return is_null($this->getGiftWrapRequested()) ? '' : "<GiftwrapRequested>{$this->convertBooleanToString($this->getGiftWrapRequested())}</GiftwrapRequested>"; |
|
71 | 70 | } |
72 | 71 | |
73 | 72 | protected function serializeQuantity() |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload; |
17 | 17 |
@@ -17,19 +17,19 @@ |
||
17 | 17 | * Wrap include in a function to allow variables while protecting scope. |
18 | 18 | * @return array mapping of config keys to message payload types for bidirectional api operations |
19 | 19 | */ |
20 | -return call_user_func(function () { |
|
20 | +return call_user_func(function() { |
|
21 | 21 | $orderEvents = '\eBayEnterprise\RetailOrderManagement\Payload\OrderEvents'; |
22 | - $map = []; |
|
23 | - $map['OrderAccepted'] = "$orderEvents\OrderAccepted"; |
|
24 | - $map['OrderBackorder'] = "$orderEvents\OrderBackorder"; |
|
25 | - $map['OrderCancelled'] = "$orderEvents\OrderCancel"; |
|
26 | - $map['OrderConfirmed'] = "$orderEvents\OrderConfirmed"; |
|
27 | - $map['OrderCreditIssued'] = "$orderEvents\OrderCreditIssued"; |
|
28 | - $map['OrderGiftCardActivation'] = "$orderEvents\OrderGiftCardActivation"; |
|
29 | - $map['OrderPriceAdjustment'] = "$orderEvents\OrderPriceAdjustment"; |
|
30 | - $map['OrderRejected'] = "$orderEvents\OrderRejected"; |
|
31 | - $map['OrderReturnInTransit'] = "$orderEvents\OrderReturnInTransit"; |
|
32 | - $map['OrderShipped'] = "$orderEvents\OrderShipped"; |
|
33 | - $map['Test'] = "$orderEvents\TestMessage"; |
|
22 | + $map = [ ]; |
|
23 | + $map[ 'OrderAccepted' ] = "$orderEvents\OrderAccepted"; |
|
24 | + $map[ 'OrderBackorder' ] = "$orderEvents\OrderBackorder"; |
|
25 | + $map[ 'OrderCancelled' ] = "$orderEvents\OrderCancel"; |
|
26 | + $map[ 'OrderConfirmed' ] = "$orderEvents\OrderConfirmed"; |
|
27 | + $map[ 'OrderCreditIssued' ] = "$orderEvents\OrderCreditIssued"; |
|
28 | + $map[ 'OrderGiftCardActivation' ] = "$orderEvents\OrderGiftCardActivation"; |
|
29 | + $map[ 'OrderPriceAdjustment' ] = "$orderEvents\OrderPriceAdjustment"; |
|
30 | + $map[ 'OrderRejected' ] = "$orderEvents\OrderRejected"; |
|
31 | + $map[ 'OrderReturnInTransit' ] = "$orderEvents\OrderReturnInTransit"; |
|
32 | + $map[ 'OrderShipped' ] = "$orderEvents\OrderShipped"; |
|
33 | + $map[ 'Test' ] = "$orderEvents\TestMessage"; |
|
34 | 34 | return $map; |
35 | 35 | }); |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload; |
17 | 17 |
@@ -272,14 +272,14 @@ |
||
272 | 272 | $linePrice = $this->getLinePrice(); |
273 | 273 | $amount = $this->getAmount(); |
274 | 274 | return array_merge( |
275 | - $name ? ['name' => $name] : [], |
|
276 | - $category ? ['category' => $category] : [], |
|
277 | - $isDiscount ? ['isDiscount' => $isDiscount] : [], |
|
278 | - $isPromotion ? ['isPromotion' => $isPromotion] : [], |
|
279 | - $informational ? ['informational' => $informational] : [], |
|
280 | - is_numeric($unitPrice) ? ['unitPrice' => $unitPrice] : [], |
|
281 | - is_numeric($linePrice) ? ['linePrice' => $linePrice] : [], |
|
282 | - is_numeric($amount) ? ['amount' => $amount] : [] |
|
275 | + $name ? [ 'name' => $name ] : [ ], |
|
276 | + $category ? [ 'category' => $category ] : [ ], |
|
277 | + $isDiscount ? [ 'isDiscount' => $isDiscount ] : [ ], |
|
278 | + $isPromotion ? [ 'isPromotion' => $isPromotion ] : [ ], |
|
279 | + $informational ? [ 'informational' => $informational ] : [ ], |
|
280 | + is_numeric($unitPrice) ? [ 'unitPrice' => $unitPrice ] : [ ], |
|
281 | + is_numeric($linePrice) ? [ 'linePrice' => $linePrice ] : [ ], |
|
282 | + is_numeric($amount) ? [ 'amount' => $amount ] : [ ] |
|
283 | 283 | ); |
284 | 284 | } |
285 | 285 | } |
@@ -20,9 +20,7 @@ |
||
20 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator; |
21 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
23 | -use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
|
24 | 23 | use Psr\Log\LoggerInterface; |
25 | -use Psr\Log\NullLogger; |
|
26 | 24 | |
27 | 25 | class TaxHeader implements ITaxHeader |
28 | 26 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Validator\Order; |
17 | 17 |
@@ -212,10 +212,10 @@ |
||
212 | 212 | protected function getRootAttributes() |
213 | 213 | { |
214 | 214 | $name = $this->getName(); |
215 | - $adjustmentCategory = $this->getAdjustmentCategory();; |
|
215 | + $adjustmentCategory = $this->getAdjustmentCategory(); ; |
|
216 | 216 | return array_merge( |
217 | - $name ? ['name' => $name] : [], |
|
218 | - $adjustmentCategory ? ['adjustmentCategory' => $adjustmentCategory] : [] |
|
217 | + $name ? [ 'name' => $name ] : [ ], |
|
218 | + $adjustmentCategory ? [ 'adjustmentCategory' => $adjustmentCategory ] : [ ] |
|
219 | 219 | ); |
220 | 220 | } |
221 | 221 | } |
@@ -20,9 +20,7 @@ |
||
20 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator; |
21 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
23 | -use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
|
24 | 23 | use Psr\Log\LoggerInterface; |
25 | -use Psr\Log\NullLogger; |
|
26 | 24 | |
27 | 25 | class TaxHeader implements ITaxHeader |
28 | 26 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Validator\Order; |
17 | 17 |
@@ -199,6 +199,6 @@ |
||
199 | 199 | protected function getRootAttributes() |
200 | 200 | { |
201 | 201 | $customerId = $this->getCustomerId(); |
202 | - return $customerId ? ['customerId' => $customerId] : []; |
|
202 | + return $customerId ? [ 'customerId' => $customerId ] : [ ]; |
|
203 | 203 | } |
204 | 204 | } |
@@ -20,9 +20,7 @@ |
||
20 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator; |
21 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
23 | -use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
|
24 | 23 | use Psr\Log\LoggerInterface; |
25 | -use Psr\Log\NullLogger; |
|
26 | 24 | |
27 | 25 | class TaxHeader implements ITaxHeader |
28 | 26 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Validator\Order; |
17 | 17 |
@@ -146,8 +146,8 @@ |
||
146 | 146 | { |
147 | 147 | $orderType = $this->getOrderType(); |
148 | 148 | return array_merge( |
149 | - ['xmlns' => $this->getXmlNamespace()], |
|
150 | - $orderType ? ['orderType' => $this->getOrderType()] : [] |
|
149 | + [ 'xmlns' => $this->getXmlNamespace() ], |
|
150 | + $orderType ? [ 'orderType' => $this->getOrderType() ] : [ ] |
|
151 | 151 | ); |
152 | 152 | } |
153 | 153 | } |
@@ -23,7 +23,6 @@ |
||
23 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\Payment\TAmount; |
24 | 24 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
25 | 25 | use Psr\Log\LoggerInterface; |
26 | -use Psr\Log\NullLogger; |
|
27 | 26 | |
28 | 27 | class TaxedPriceGroup implements ITaxedPriceGroup |
29 | 28 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Validator\Order; |
17 | 17 |
@@ -240,9 +240,9 @@ |
||
240 | 240 | { |
241 | 241 | $testType = $this->getTestType(); |
242 | 242 | return array_merge( |
243 | - ['xmlns' => $this->getXmlNamespace(), 'orderType' => $this->getOrderType()], |
|
244 | - $testType ? ['testType' => $testType] : [], |
|
245 | - ['cancellable' => $this->getCancellable()] |
|
243 | + [ 'xmlns' => $this->getXmlNamespace(), 'orderType' => $this->getOrderType() ], |
|
244 | + $testType ? [ 'testType' => $testType ] : [ ], |
|
245 | + [ 'cancellable' => $this->getCancellable() ] |
|
246 | 246 | ); |
247 | 247 | } |
248 | 248 | } |
@@ -20,9 +20,7 @@ |
||
20 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator; |
21 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
23 | -use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
|
24 | 23 | use Psr\Log\LoggerInterface; |
25 | -use Psr\Log\NullLogger; |
|
26 | 24 | |
27 | 25 | class TaxHeader implements ITaxHeader |
28 | 26 | { |
@@ -1,17 +1,17 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Order\Detail; |
17 | 17 | |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | ? sprintf('<%s %s %s>%s</%1$s>', $nodeName, $modeAttribute, $displayTextAttribute, $this->xmlEncode($value)) : null; |
337 | 337 | } |
338 | 338 | |
339 | - /** |
|
339 | + /** |
|
340 | 340 | * @see TPayload::getRootAttributes() |
341 | 341 | */ |
342 | 342 | protected function getRootAttributes() |