@@ -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() |
@@ -226,6 +226,8 @@ |
||
| 226 | 226 | * |
| 227 | 227 | * @param string |
| 228 | 228 | * @param string |
| 229 | + * @param string $nodeName |
|
| 230 | + * @param string $value |
|
| 229 | 231 | * @return string |
| 230 | 232 | */ |
| 231 | 233 | protected function serializeItemValue($nodeName, $value) |
@@ -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 | { |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | $taxType = $this->getTaxType(); |
| 157 | 157 | return array_merge( |
| 158 | 158 | parent::getRootAttributes(), |
| 159 | - $taxType ? ['taxType' => $taxType] : [] |
|
| 159 | + $taxType ? [ 'taxType' => $taxType ] : [ ] |
|
| 160 | 160 | ); |
| 161 | 161 | } |
| 162 | 162 | } |
@@ -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 | |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | protected function getRootAttributes() |
| 163 | 163 | { |
| 164 | 164 | $appliedCount = $this->sanitizeAmount($this->getAppliedCount()); |
| 165 | - return !is_null($appliedCount) ? ['appliedCount' => (int) $appliedCount] : []; |
|
| 165 | + return !is_null($appliedCount) ? [ 'appliedCount' => (int) $appliedCount ] : [ ]; |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | protected function getRootNodeName() |
@@ -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 | |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | |
| 161 | 161 | protected function getRootAttributes() |
| 162 | 162 | { |
| 163 | - return ['parent' => $this->getParentItemId()]; |
|
| 163 | + return [ 'parent' => $this->getParentItemId() ]; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | protected function getRootNodeName() |
@@ -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 | |
@@ -53,11 +53,11 @@ |
||
| 53 | 53 | $this->logger = $logger; |
| 54 | 54 | $this->extractionPaths = array_merge( |
| 55 | 55 | $this->extractionPaths, |
| 56 | - ['id' => 'string(@id)'] |
|
| 56 | + [ 'id' => 'string(@id)' ] |
|
| 57 | 57 | ); |
| 58 | 58 | $this->optionalExtractionPaths = array_merge( |
| 59 | 59 | $this->optionalExtractionPaths, |
| 60 | - ['phone' => 'x:Phone'] |
|
| 60 | + [ 'phone' => 'x:Phone' ] |
|
| 61 | 61 | ); |
| 62 | 62 | } |
| 63 | 63 | |
@@ -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-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 | |
@@ -182,9 +182,9 @@ |
||
| 182 | 182 | protected function getRootAttributes() |
| 183 | 183 | { |
| 184 | 184 | $orderType = $this->getOrderType(); |
| 185 | - $attributes = ['xmlns' => $this->getXmlNamespace()]; |
|
| 185 | + $attributes = [ 'xmlns' => $this->getXmlNamespace() ]; |
|
| 186 | 186 | return $orderType |
| 187 | - ? array_merge($attributes, ['orderType' => $this->getOrderType()]) |
|
| 187 | + ? array_merge($attributes, [ 'orderType' => $this->getOrderType() ]) |
|
| 188 | 188 | : $attributes; |
| 189 | 189 | } |
| 190 | 190 | } |
@@ -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 | |
@@ -117,6 +117,6 @@ |
||
| 117 | 117 | */ |
| 118 | 118 | protected function getRootAttributes() |
| 119 | 119 | { |
| 120 | - return ['xmlns' => $this->getXmlNamespace()]; |
|
| 120 | + return [ 'xmlns' => $this->getXmlNamespace() ]; |
|
| 121 | 121 | } |
| 122 | 122 | } |
@@ -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 | |
@@ -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; |
| 17 | 17 | |
@@ -533,10 +533,10 @@ discard block |
||
| 533 | 533 | { |
| 534 | 534 | if (!is_null($this->getAssociateNumber())) { |
| 535 | 535 | return '<Associate>' |
| 536 | - . "<Name>{$this->xmlEncode($this->getAssociateName())}</Name>" |
|
| 537 | - . "<Number>{$this->xmlEncode($this->getAssociateNumber())}</Number>" |
|
| 538 | - . "<Store>{$this->xmlEncode($this->getAssociateStore())}</Store>" |
|
| 539 | - . '</Associate>'; |
|
| 536 | + . "<Name>{$this->xmlEncode($this->getAssociateName())}</Name>" |
|
| 537 | + . "<Number>{$this->xmlEncode($this->getAssociateNumber())}</Number>" |
|
| 538 | + . "<Store>{$this->xmlEncode($this->getAssociateStore())}</Store>" |
|
| 539 | + . '</Associate>'; |
|
| 540 | 540 | } |
| 541 | 541 | return ''; |
| 542 | 542 | } |
@@ -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 | { |
@@ -72,8 +72,8 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $xpath = $this->getPayloadAsXPath($serializedData); |
| 74 | 74 | foreach ($xpath->query($this->getSubpayloadXPath()) as $subpayloadNode) { |
| 75 | - if (isset($this->subpayloadNodeMap[$subpayloadNode->nodeName])) { |
|
| 76 | - $plFactoryMethod = $this->subpayloadNodeMap[$subpayloadNode->nodeName]; |
|
| 75 | + if (isset($this->subpayloadNodeMap[ $subpayloadNode->nodeName ])) { |
|
| 76 | + $plFactoryMethod = $this->subpayloadNodeMap[ $subpayloadNode->nodeName ]; |
|
| 77 | 77 | $pl = $this->$plFactoryMethod(); |
| 78 | 78 | } |
| 79 | 79 | if (isset($pl)) { |
@@ -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-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 | |