@@ -118,6 +118,7 @@ |
||
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * @param string |
| 121 | + * @param string $type |
|
| 121 | 122 | * @return string |
| 122 | 123 | */ |
| 123 | 124 | public function setType($type) |
@@ -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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -63,7 +63,8 @@ |
||
| 63 | 63 | * @param string |
| 64 | 64 | * @param array |
| 65 | 65 | * @param mixed |
| 66 | - * @return mixed |
|
| 66 | + * @param string $key |
|
| 67 | + * @return EbayEnterprise_Tax_Model_Collector |
|
| 67 | 68 | */ |
| 68 | 69 | protected function _nullCoalesce(array $arr, $key, $default) |
| 69 | 70 | { |
@@ -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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | +use eBayEnterprise\RetailOrderManagement\Payload\Order\IDiscountContainer; |
|
| 16 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderItem; |
| 17 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\Order\ITaxContainer; |
| 18 | -use eBayEnterprise\RetailOrderManagement\Payload\Order\IDiscountContainer; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Adds Tax information to an OrderItem payload and its sub payloads. |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | // immediate remediation. |
| 248 | 248 | $feeTaxes = array_filter( |
| 249 | 249 | $feeTaxRecords, |
| 250 | - function ($taxRecord) use ($feeId) { |
|
| 250 | + function($taxRecord) use ($feeId) { |
|
| 251 | 251 | return $feeId && $feeId === $taxRecord->getFeeId(); |
| 252 | 252 | } |
| 253 | 253 | ); |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | // now, at least, it should be a small enough data set to not demand |
| 317 | 317 | // immediate remediation. |
| 318 | 318 | $this->_addTaxRecordsToContainer( |
| 319 | - array_filter($taxRecords, function ($taxRecord) use ($discountId) { |
|
| 319 | + array_filter($taxRecords, function($taxRecord) use ($discountId) { |
|
| 320 | 320 | return $discountId && $taxRecord->getDiscountId() == $discountId; |
| 321 | 321 | }), |
| 322 | 322 | $discountPayload |
@@ -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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -78,6 +78,7 @@ discard block |
||
| 78 | 78 | * @param string |
| 79 | 79 | * @param array |
| 80 | 80 | * @param mixed |
| 81 | + * @param string $key |
|
| 81 | 82 | * @return mixed |
| 82 | 83 | */ |
| 83 | 84 | protected function _nullCoalesce(array $arr, $key, $default) |
@@ -134,7 +135,7 @@ discard block |
||
| 134 | 135 | /** |
| 135 | 136 | * Get the tax container for address level gifting taxes. |
| 136 | 137 | * |
| 137 | - * @return ITaxContainer |
|
| 138 | + * @return Payload\Order\ITaxIterable |
|
| 138 | 139 | */ |
| 139 | 140 | protected function _getTaxContainer() |
| 140 | 141 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IGifting; |
| 17 | -use eBayEnterprise\RetailOrderManagement\Payload\Order\ITax; |
|
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * Adds Tax information to an OrderItem payload and its sub payloads. |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | // gifting, and do not indicate a calculation error for the record. |
| 125 | 125 | return array_filter( |
| 126 | 126 | $this->_taxCollector->getTaxRecords(), |
| 127 | - function ($record) use ($addressId) { |
|
| 127 | + function($record) use ($addressId) { |
|
| 128 | 128 | return $record->getAddressId() === $addressId |
| 129 | 129 | && $record->getTaxSource() === EbayEnterprise_Tax_Model_Record::SOURCE_ADDRESS_GIFTING; |
| 130 | 130 | } |
@@ -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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -109,6 +109,7 @@ discard block |
||
| 109 | 109 | * @param string |
| 110 | 110 | * @param array |
| 111 | 111 | * @param mixed |
| 112 | + * @param string $key |
|
| 112 | 113 | * @return mixed |
| 113 | 114 | */ |
| 114 | 115 | protected function _nullCoalesce(array $arr, $key, $default) |
@@ -119,7 +120,7 @@ discard block |
||
| 119 | 120 | /** |
| 120 | 121 | * Get the destination payload for the address. |
| 121 | 122 | * |
| 122 | - * @return IDestination|null |
|
| 123 | + * @return IDestination |
|
| 123 | 124 | */ |
| 124 | 125 | public function getDestinationPayload() |
| 125 | 126 | { |
@@ -129,7 +130,7 @@ discard block |
||
| 129 | 130 | /** |
| 130 | 131 | * Get the ship group payload for the address. |
| 131 | 132 | * |
| 132 | - * @return IShipGroup|null |
|
| 133 | + * @return IShipGroup |
|
| 133 | 134 | */ |
| 134 | 135 | public function getShipGroupPayload() |
| 135 | 136 | { |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IShipGroupIterable; |
|
| 17 | 16 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IDestinationIterable; |
| 17 | +use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IShipGroupIterable; |
|
| 18 | 18 | |
| 19 | 19 | class EbayEnterprise_Tax_Model_Request_Builder_Address |
| 20 | 20 | { |
@@ -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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -127,6 +127,7 @@ discard block |
||
| 127 | 127 | * @param string |
| 128 | 128 | * @param array |
| 129 | 129 | * @param mixed |
| 130 | + * @param string $key |
|
| 130 | 131 | * @return mixed |
| 131 | 132 | */ |
| 132 | 133 | protected function _nullCoalesce(array $arr, $key, $default) |
@@ -137,7 +138,7 @@ discard block |
||
| 137 | 138 | /** |
| 138 | 139 | * Get the order item payload for the item. |
| 139 | 140 | * |
| 140 | - * @return IOrderItemRequest|null |
|
| 141 | + * @return IOrderItemRequest |
|
| 141 | 142 | */ |
| 142 | 143 | public function getOrderItemPayload() |
| 143 | 144 | { |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | +use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IDiscountContainer; |
|
| 16 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IOrderItemRequest; |
| 17 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IOrderItemRequestIterable; |
| 18 | -use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IDiscountContainer; |
|
| 19 | 19 | |
| 20 | 20 | class EbayEnterprise_Tax_Model_Request_Builder_Item |
| 21 | 21 | { |
@@ -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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * nearly identical steps from being repeated for each item for each type of |
| 90 | 90 | * tax data. |
| 91 | 91 | * |
| 92 | - * @return EbayEnterprise_Tax_Model_Record[] |
|
| 92 | + * @return EbayEnterprise_Tax_Model_Response_Parser_Address |
|
| 93 | 93 | */ |
| 94 | 94 | protected function _extractTaxData() |
| 95 | 95 | { |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedShipGroup; |
|
| 17 | 16 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedOrderItem; |
| 17 | +use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedShipGroup; |
|
| 18 | 18 | |
| 19 | 19 | class EbayEnterprise_Tax_Model_Response_Parser_Address extends EbayEnterprise_Tax_Model_Response_Parser_Abstract |
| 20 | 20 | { |
@@ -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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -244,7 +244,7 @@ |
||
| 244 | 244 | /** |
| 245 | 245 | * Extract tax records from a gifting payload. |
| 246 | 246 | * |
| 247 | - * @return EbayEnterprise_Tax_Model_Record |
|
| 247 | + * @return EbayEnterprise_Tax_Model_Record[] |
|
| 248 | 248 | */ |
| 249 | 249 | protected function _extractGiftingTaxRecords() |
| 250 | 250 | { |
@@ -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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |
@@ -83,6 +83,7 @@ |
||
| 83 | 83 | * @param string |
| 84 | 84 | * @param array |
| 85 | 85 | * @param mixed |
| 86 | + * @param string $key |
|
| 86 | 87 | * @return mixed |
| 87 | 88 | */ |
| 88 | 89 | protected function _nullCoalesce(array $arr, $key, $default) |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | { |
| 144 | 144 | return array_reduce( |
| 145 | 145 | $taxRecords, |
| 146 | - function ($total, $taxRecord) { |
|
| 146 | + function($total, $taxRecord) { |
|
| 147 | 147 | return $total + $taxRecord->getCalculatedTax(); |
| 148 | 148 | }, |
| 149 | 149 | 0.00 |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | { |
| 161 | 161 | return array_reduce( |
| 162 | 162 | $duties, |
| 163 | - function ($total, $duty) { |
|
| 163 | + function($total, $duty) { |
|
| 164 | 164 | return $total + $duty->getAmount(); |
| 165 | 165 | }, |
| 166 | 166 | 0.00 |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | { |
| 178 | 178 | return array_reduce( |
| 179 | 179 | $fees, |
| 180 | - function ($total, $fee) { |
|
| 180 | + function($total, $fee) { |
|
| 181 | 181 | return $total + $fee->getAmount(); |
| 182 | 182 | }, |
| 183 | 183 | 0.00 |
@@ -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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
| 17 | 17 | { |