@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | protected function _getMaxGiftCardAmount(Mage_Catalog_Model_Product $product) |
50 | 50 | { |
51 | - return array_reduce($product->getGiftcardAmounts(), function ($p, $i) { |
|
51 | + return array_reduce($product->getGiftcardAmounts(), function($p, $i) { |
|
52 | 52 | return max($p, $i['value']); |
53 | 53 | }, 0); |
54 | 54 | } |
@@ -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 | { |
@@ -70,9 +70,9 @@ |
||
70 | 70 | $dutyRecords = $collector->getTaxDutiesByAddressId($addressId); |
71 | 71 | $feeRecords = $collector->getTaxFeesByAddressId($addressId); |
72 | 72 | } |
73 | - $taxes = array_sum(array_map(function ($record) { return $record->getCalculatedTax(); }, $taxRecords)); |
|
74 | - $duties = array_sum(array_map(function ($record) { return $record->getAmount(); }, $dutyRecords)); |
|
75 | - $fees = array_sum(array_map(function ($record) { return $record->getAmount(); }, $feeRecords)); |
|
73 | + $taxes = array_sum(array_map(function($record) { return $record->getCalculatedTax(); }, $taxRecords)); |
|
74 | + $duties = array_sum(array_map(function($record) { return $record->getAmount(); }, $dutyRecords)); |
|
75 | + $fees = array_sum(array_map(function($record) { return $record->getAmount(); }, $feeRecords)); |
|
76 | 76 | return [$taxes, $duties, $fees]; |
77 | 77 | } |
78 | 78 | } |
@@ -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 | { |
@@ -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 | */ |
@@ -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 | { |
@@ -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 | { |
@@ -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 | */ |
@@ -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) |
@@ -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 | { |
@@ -62,7 +62,7 @@ |
||
62 | 62 | /** |
63 | 63 | * Return the value at field in array if it exists. Otherwise, use the default value. |
64 | 64 | * @param array $arr |
65 | - * @param string|int $field Valid array key |
|
65 | + * @param string $field Valid array key |
|
66 | 66 | * @param mixed $default |
67 | 67 | * @return mixed |
68 | 68 | */ |
@@ -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,10 +13,10 @@ |
||
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\IBidirectionalApi; |
|
17 | 16 | use eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError; |
18 | 17 | use eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction; |
19 | 18 | use eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation; |
19 | +use eBayEnterprise\RetailOrderManagement\Api\IBidirectionalApi; |
|
20 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload; |
21 | 21 | |
22 | 22 | class EbayEnterprise_Inventory_Model_Allocation_Deallocator |
@@ -13,10 +13,10 @@ |
||
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\IBidirectionalApi; |
|
17 | 16 | use eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError; |
18 | 17 | use eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction; |
19 | 18 | use eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation; |
19 | +use eBayEnterprise\RetailOrderManagement\Api\IBidirectionalApi; |
|
20 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload; |
21 | 21 | |
22 | 22 | class EbayEnterprise_Inventory_Model_Allocation_Deallocator |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | public function setUp() |
26 | 26 | { |
27 | - $this->logger= $this->getHelperMockBuilder('ebayenterprise_magelog/data') |
|
27 | + $this->logger = $this->getHelperMockBuilder('ebayenterprise_magelog/data') |
|
28 | 28 | ->disableOriginalConstructor() |
29 | 29 | ->getMock(); |
30 | 30 | $this->logContext = $this->getHelperMockBuilder('ebayenterprise_magelog/context') |