@@ -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 | { |
@@ -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_Total_Quote_Address_TaxTest 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_Total_Quote_Address_TaxTest 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 | { |
@@ -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_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
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-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_Order_Address_Validation |
17 | 17 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function allowAddressValidation(Mage_Customer_Model_Address_Abstract $address) |
72 | 72 | { |
73 | - /** @var Mage_Core_Controller_Request_Http */ |
|
73 | + /** @var Mage_Core_Controller_Request_Http */ |
|
74 | 74 | $request = $this->app->getRequest(); |
75 | 75 | /** @var bool */ |
76 | 76 | $needValidation = $this->validator->shouldValidateAddress($address); |
@@ -70,7 +70,7 @@ |
||
70 | 70 | * Return the value at field in array if it exists. Otherwise, use the |
71 | 71 | * default value. |
72 | 72 | * @param array $arr |
73 | - * @param string|int $field Valid array key |
|
73 | + * @param string $field Valid array key |
|
74 | 74 | * @param mixed $default |
75 | 75 | * @return mixed |
76 | 76 | */ |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ->will($this->returnValue(array_map( |
85 | 85 | // Get just the "store" key from each triple in the $stores array - produces |
86 | 86 | // an array of Mage_Core_Model_Store objects. |
87 | - function ($storeAndConfig) { |
|
87 | + function($storeAndConfig) { |
|
88 | 88 | return $storeAndConfig['store']; |
89 | 89 | }, |
90 | 90 | $stores |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | // and the Eb2cCore module's config as the second for each triple in |
100 | 100 | // the $stores array - allows the stub to return the correct |
101 | 101 | // configuration for a given store. |
102 | - function ($storeAndConfig) { |
|
102 | + function($storeAndConfig) { |
|
103 | 103 | return array($storeAndConfig['store'], $storeAndConfig['core_config']); |
104 | 104 | }, |
105 | 105 | $stores |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | // and the EbayEnterprise_Amqp module's config as the second for each |
114 | 114 | // triple in the $stores array - allows the stub to return the correct |
115 | 115 | // configuration for a given store. |
116 | - function ($storeAndConfig) { |
|
116 | + function($storeAndConfig) { |
|
117 | 117 | return array($storeAndConfig['store'], $storeAndConfig['amqp_config']); |
118 | 118 | }, |
119 | 119 | $stores |
@@ -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 | { |
@@ -165,8 +165,7 @@ discard block |
||
165 | 165 | // (dates prior to unix epoch time 0 for example). If the two combined |
166 | 166 | // functions are unable to produce a valid time, fall back to the unix |
167 | 167 | // time `0` so something can be returned. |
168 | - return DateTime::createFromFormat('U', strtotime($messageDateTime)) ?: |
|
169 | - DateTime::createFromFormat('U', 0); |
|
168 | + return DateTime::createFromFormat('U', strtotime($messageDateTime)) ?: DateTime::createFromFormat('U', 0); |
|
170 | 169 | } |
171 | 170 | /** |
172 | 171 | * Ensure the Feed's event type matches. |
@@ -224,7 +223,7 @@ discard block |
||
224 | 223 | { |
225 | 224 | $data = array(); |
226 | 225 | foreach ($mhc as $key => $value) { |
227 | - $data[$key] = (is_array($value))? Mage::helper('eb2ccore')->invokeCallback($value) : $value; |
|
226 | + $data[$key] = (is_array($value)) ? Mage::helper('eb2ccore')->invokeCallback($value) : $value; |
|
228 | 227 | } |
229 | 228 | return $data; |
230 | 229 | } |
@@ -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 | { |