@@ -127,7 +127,7 @@ |
||
127 | 127 | /** |
128 | 128 | * stub out the setter methods for the payload excluding those |
129 | 129 | * specified in the array |
130 | - * @param array $exclude |
|
130 | + * @param string[] $exclude |
|
131 | 131 | */ |
132 | 132 | protected function _stubPayload($exclude = []) |
133 | 133 | { |
@@ -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 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Type checks for __construct's $initParams |
52 | 52 | * @param EbayEnterprise_Eb2cCore_Helper_Validator $validatorHelper |
53 | - * @return mixed[] |
|
53 | + * @return EbayEnterprise_Eb2cCore_Helper_Validator[] |
|
54 | 54 | */ |
55 | 55 | protected function _checkTypes(EbayEnterprise_Eb2cCore_Helper_Validator $validatorHelper) |
56 | 56 | { |
@@ -59,9 +59,9 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Get the value form the array if set, else the default value. |
61 | 61 | * @param mixed[] $arr |
62 | - * @param string|int $field |
|
62 | + * @param string $field |
|
63 | 63 | * @param mixed $default |
64 | - * @return mixed |
|
64 | + * @return EbayEnterprise_Eb2cCore_Helper_Validator |
|
65 | 65 | */ |
66 | 66 | protected function _nullCoalesce(array $arr, $field, $default) |
67 | 67 | { |
@@ -357,7 +357,7 @@ |
||
357 | 357 | * getting how long ago a file has been modified or created in minutes |
358 | 358 | * |
359 | 359 | * @param string $sourceFile |
360 | - * @return int time ago in minutes |
|
360 | + * @return double time ago in minutes |
|
361 | 361 | */ |
362 | 362 | public function getFileTimeElapse($sourceFile) |
363 | 363 | { |
@@ -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\Api; |
|
17 | 16 | use Psr\Log\LoggerInterface; |
17 | +use eBayEnterprise\RetailOrderManagement\Api; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Class EbayEnterprise_Eb2cCore_Helper_Data |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | */ |
211 | 211 | public function extractNodeVal(DOMNodeList $nodeList) |
212 | 212 | { |
213 | - return ($nodeList->length)? $nodeList->item(0)->nodeValue : null; |
|
213 | + return ($nodeList->length) ? $nodeList->item(0)->nodeValue : null; |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | /** |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | */ |
223 | 223 | public function extractNodeAttributeVal(DOMNodeList $nodeList, $attributeName) |
224 | 224 | { |
225 | - return ($nodeList->length)? $nodeList->item(0)->getAttribute($attributeName) : null; |
|
225 | + return ($nodeList->length) ? $nodeList->item(0)->getAttribute($attributeName) : null; |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | /** |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | { |
483 | 483 | $cfg = Mage::helper('eb2ccore')->getConfigModel(); |
484 | 484 | $ids = explode(',', $appliedRuleIds); |
485 | - $ruleId = !empty($ids)?$ids[0]: 0; |
|
485 | + $ruleId = !empty($ids) ? $ids[0] : 0; |
|
486 | 486 | return sprintf('%.12s', $cfg->storeId . '-' . $ruleId); |
487 | 487 | } |
488 | 488 | /** |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | if (empty($meta)) { |
591 | 591 | return null; |
592 | 592 | } |
593 | - $parameters = isset($meta['parameters'])? $meta['parameters'] : []; |
|
593 | + $parameters = isset($meta['parameters']) ? $meta['parameters'] : []; |
|
594 | 594 | switch ($meta['type']) { |
595 | 595 | case 'model': |
596 | 596 | return call_user_func_array([Mage::getModel($meta['class']), $meta['method']], $parameters); |
@@ -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 | { |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | * return null if $shippingMethod evaluates to false |
126 | 126 | * |
127 | 127 | * @param string |
128 | + * @param string $shippingMethod |
|
128 | 129 | * @return string|null |
129 | 130 | */ |
130 | 131 | public function getMethodTitle($shippingMethod) |
@@ -186,6 +187,8 @@ discard block |
||
186 | 187 | * |
187 | 188 | * @param string |
188 | 189 | * @param string |
190 | + * @param string $shippingMethod |
|
191 | + * @param string $displayString |
|
189 | 192 | */ |
190 | 193 | protected function storeShippingMethodInfo($shippingMethod, $displayString) |
191 | 194 | { |
@@ -227,6 +230,7 @@ discard block |
||
227 | 230 | * |
228 | 231 | * @param string |
229 | 232 | * @param string |
233 | + * @param string $carrierTitle |
|
230 | 234 | * @return string |
231 | 235 | */ |
232 | 236 | protected function buildNameString($carrierTitle, $methodName) |
@@ -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 | { |
@@ -102,7 +102,7 @@ |
||
102 | 102 | * Get the configuration flag value represented by the given configKey |
103 | 103 | * @param string $configKey |
104 | 104 | * @param null|string|bool|int|Mage_Core_Model_Store $store |
105 | - * @return bool |
|
105 | + * @return string|boolean |
|
106 | 106 | */ |
107 | 107 | public function getConfig($configKey, $store = null) |
108 | 108 | { |
@@ -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 | { |
@@ -44,7 +44,8 @@ |
||
44 | 44 | * @param array |
45 | 45 | * @param mixed |
46 | 46 | * @param mixed |
47 | - * @return mixed |
|
47 | + * @param string $key |
|
48 | + * @return EbayEnterprise_Eb2cCore_Helper_Data |
|
48 | 49 | */ |
49 | 50 | protected function nullCoalesce(array $arr, $key, $default) |
50 | 51 | { |
@@ -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 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @param EbayEnterprise_Eb2cCore_Helper_Languages |
39 | - * @return array |
|
39 | + * @return EbayEnterprise_Eb2cCore_Helper_Languages[] |
|
40 | 40 | */ |
41 | 41 | protected function _checkTypes( |
42 | 42 | EbayEnterprise_Eb2cCore_Helper_Languages $langHelper, |
@@ -71,6 +71,7 @@ discard block |
||
71 | 71 | * is not, throw an exception. |
72 | 72 | * |
73 | 73 | * @param string |
74 | + * @param string $langCode |
|
74 | 75 | * @return self |
75 | 76 | * @throws EbayeEnterprise_Eb2cCore_Exception If value is not a valid language code. |
76 | 77 | */ |
@@ -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 | { |
@@ -124,8 +124,8 @@ |
||
124 | 124 | |
125 | 125 | /** |
126 | 126 | * @param string $alias model alias |
127 | - * @param array $methodActions mapping of method name to a value or PHPUnit_Framework_MockObject_Stub |
|
128 | - * @return object mock object with specified methods mocked under the 'any' invokation constraint. |
|
127 | + * @param array $methods mapping of method name to a value or PHPUnit_Framework_MockObject_Stub |
|
128 | + * @return EcomDev_PHPUnit_Mock_Proxy mock object with specified methods mocked under the 'any' invokation constraint. |
|
129 | 129 | */ |
130 | 130 | protected function _buildModelMock($alias, array $methods = []) |
131 | 131 | { |
@@ -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 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * Get an eb2ccore helper to translate the messages. Replaces the translate |
21 | 21 | * method with a simpler callback that will simply prepend the string |
22 | 22 | * "Translated_" to the beginning of the first argument it is passed. |
23 | - * @return Mock_EbayEnterprise_Eb2cCore_Helper_Data |
|
23 | + * @return EcomDev_PHPUnit_Mock_Proxy |
|
24 | 24 | */ |
25 | 25 | protected function _getMockTranslationHelper() |
26 | 26 | { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $helper->expects($this->once()) |
30 | 30 | ->method('__') |
31 | 31 | ->will($this->returnCallback( |
32 | - function ($msg) { |
|
32 | + function($msg) { |
|
33 | 33 | return 'Translated_' . $msg; |
34 | 34 | } |
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 | class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case |
17 | 17 | { |