@@ -92,6 +92,7 @@ |
||
92 | 92 | * @param string |
93 | 93 | * @param array |
94 | 94 | * @param mixed |
95 | + * @param string $key |
|
95 | 96 | * @return mixed |
96 | 97 | */ |
97 | 98 | protected function _nullCoalesce(array $arr, $key, $default) |
@@ -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 | abstract class EbayEnterprise_Tax_Model_Response_Parser_Abstract |
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 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedShipGroup; |
17 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedOrderItem; |
@@ -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 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedOrderItem; |
17 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedPriceGroup; |
@@ -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) |
@@ -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_Model_Total_Quote_Address_Tax extends Mage_Sales_Model_Quote_Address_Total_Abstract |
17 | 17 | { |
@@ -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 |
@@ -121,6 +121,7 @@ discard block |
||
121 | 121 | * Build a mock tax record with the given quote address id. |
122 | 122 | * |
123 | 123 | * @param int |
124 | + * @param integer $quoteAddressId |
|
124 | 125 | * @return EbayEnterprise_Tax_Model_Record |
125 | 126 | */ |
126 | 127 | protected function _buildMockTaxRecord($quoteAddressId) |
@@ -142,6 +143,7 @@ discard block |
||
142 | 143 | * Build a mock tax record with the given quote address id. |
143 | 144 | * |
144 | 145 | * @param int |
146 | + * @param integer $itemId |
|
145 | 147 | * @return EbayEnterprise_Tax_Model_Duty |
146 | 148 | */ |
147 | 149 | protected function _buildMockTaxDuty($itemId) |
@@ -163,6 +165,7 @@ discard block |
||
163 | 165 | * Build a mock tax record with the given quote address id. |
164 | 166 | * |
165 | 167 | * @param int |
168 | + * @param integer $itemId |
|
166 | 169 | * @return EbayEnterprise_Tax_Model_Record |
167 | 170 | */ |
168 | 171 | protected function _buildMockTaxFee($itemId) |
@@ -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_CollectorTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -113,6 +113,7 @@ |
||
113 | 113 | |
114 | 114 | /** |
115 | 115 | * Mock a tax record to return the expected tax source and address id. |
116 | + * @param integer $addressId |
|
116 | 117 | */ |
117 | 118 | protected function _mockTaxRecord($taxSource, $addressId) |
118 | 119 | { |
@@ -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_Order_Create_ShipgroupTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |
@@ -91,6 +91,7 @@ discard block |
||
91 | 91 | * Build a mock tax record scripted to return the provided calculated tax amount. |
92 | 92 | * |
93 | 93 | * @param float |
94 | + * @param double $calculatedTaxAmount |
|
94 | 95 | * @return EbayEnterprise_Tax_Model_Record |
95 | 96 | */ |
96 | 97 | protected function _buildMockTaxRecord($calculatedTaxAmount) |
@@ -111,6 +112,7 @@ discard block |
||
111 | 112 | * Build a mock tax duty scripted to return the provided amount. |
112 | 113 | * |
113 | 114 | * @param float |
115 | + * @param double $dutyAmount |
|
114 | 116 | * @return EbayEnterprise_Tax_Model_Duty |
115 | 117 | */ |
116 | 118 | protected function _buildMockTaxDuty($dutyAmount) |
@@ -131,6 +133,7 @@ discard block |
||
131 | 133 | * Build a mock tax fee scripted to return the provided amount. |
132 | 134 | * |
133 | 135 | * @param float |
136 | + * @param double $feeAmount |
|
134 | 137 | * @return EbayEnterprise_Tax_Model_Fee |
135 | 138 | */ |
136 | 139 | protected function _buildMockTaxFee($feeAmount) |
@@ -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 | { |
@@ -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 | /** |
17 | 17 | * Class EbayEnterprise_Address_Block_Suggestions |
@@ -21,7 +21,7 @@ |
||
21 | 21 | class EbayEnterprise_Address_Block_Suggestions extends Mage_Core_Block_Template |
22 | 22 | { |
23 | 23 | // Name of the input field |
24 | - const SUGGESTION_INPUT_NAME = 'validation_option'; |
|
24 | + const SUGGESTION_INPUT_NAME = 'validation_option'; |
|
25 | 25 | /** |
26 | 26 | * Where to find the format template in the config registry |
27 | 27 | * @see EbayEnterprise_Address_Model_Config::$_configPaths |
@@ -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_Address_Model_Config extends EbayEnterprise_Eb2cCore_Model_Config_Abstract |
17 | 17 | { |