@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | return array_filter( |
28 | 28 | $items, |
29 | - function ($item) { |
|
29 | + function($item) { |
|
30 | 30 | return !$this->isExcludedParent($item) && $this->isStockManaged($item); |
31 | 31 | } |
32 | 32 | ); |
@@ -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 | { |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | protected function getAddressItemFactoryCallback(Mage_Customer_Model_Address_Abstract $address) |
90 | 90 | { |
91 | - return function (Mage_Sales_Model_Quote_Item_Abstract $item) use ($address) { |
|
91 | + return function(Mage_Sales_Model_Quote_Item_Abstract $item) use ($address) { |
|
92 | 92 | return [$address, $item]; |
93 | 93 | }; |
94 | 94 | } |
@@ -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,24 +1,24 @@ |
||
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\Inventory\IInStorePickUpItem; |
17 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\Inventory\IShippingItem; |
18 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\Inventory\IInventoryDetailsRequest; |
19 | 19 | |
20 | 20 | class EbayEnterprise_Inventory_Model_Details_Request_Builder extends |
21 | - EbayEnterprise_Inventory_Model_Details_Request_Builder_Abstract |
|
21 | + EbayEnterprise_Inventory_Model_Details_Request_Builder_Abstract |
|
22 | 22 | { |
23 | 23 | /** @var EbayEnterprise_Inventory_Helper_Details_Item */ |
24 | 24 | protected $itemHelper; |
@@ -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) |
@@ -13,8 +13,6 @@ |
||
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\Inventory\IInStorePickUpItem; |
|
17 | -use eBayEnterprise\RetailOrderManagement\Payload\Inventory\IShippingItem; |
|
18 | 16 | use eBayEnterprise\RetailOrderManagement\Payload\Inventory\IInventoryDetailsRequest; |
19 | 17 | |
20 | 18 | class EbayEnterprise_Inventory_Test_Model_Details_Request_BuilderTest extends EbayEnterprise_Eb2cCore_Test_Base |
@@ -132,7 +132,7 @@ |
||
132 | 132 | */ |
133 | 133 | protected function getQuoteItemId(Mage_Sales_Model_Quote_Item_Abstract $item) |
134 | 134 | { |
135 | - $children = $item->getChildren() ?: []; |
|
135 | + $children = $item->getChildren() ?: []; |
|
136 | 136 | foreach ($children as $childItem) { |
137 | 137 | return $childItem->getId(); |
138 | 138 | } |
@@ -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 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | public function setUp() |
31 | 31 | { |
32 | 32 | parent::setUp(); |
33 | - $this->logger= $this->getHelperMockBuilder('ebayenterprise_magelog/data') |
|
33 | + $this->logger = $this->getHelperMockBuilder('ebayenterprise_magelog/data') |
|
34 | 34 | ->disableOriginalConstructor() |
35 | 35 | ->getMock(); |
36 | 36 | $this->logContext = $this->getHelperMockBuilder('ebayenterprise_magelog/context') |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | /** @var Mage_Sales_Model_Quote_Item $childItem */ |
267 | 267 | $childItem = Mage::getModel('sales/quote_item', ['item_id' => $childItemId, 'product' => $product]); |
268 | 268 | /** @var Mage_Sales_Model_Quote_Item $parentItem */ |
269 | - $parentItem = Mage::getModel('sales/quote_item', ['item_id' => $parentItemId,'product' => $product]); |
|
269 | + $parentItem = Mage::getModel('sales/quote_item', ['item_id' => $parentItemId, 'product' => $product]); |
|
270 | 270 | $parentItem->addChild($childItem); |
271 | 271 | |
272 | 272 | return [ |
@@ -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_Inventory_Test_Model_EddTest extends EbayEnterprise_Eb2cCore_Test_Base |
17 | 17 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $detailItem->expects($this->once()) |
49 | 49 | ->method('getDeliveryWindowFromDate') |
50 | 50 | ->will($this->returnValue($from)); |
51 | - $detailItem->expects($this->once()) |
|
51 | + $detailItem->expects($this->once()) |
|
52 | 52 | ->method('getDeliveryWindowToDate') |
53 | 53 | ->will($this->returnValue($to)); |
54 | 54 |
@@ -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') |
@@ -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-2015 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-2015 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-2015 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-2015 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 | /** @var Mage_Sales_Model_Resource_Setup */ |
17 | 17 | $installer = $this; |
@@ -26,6 +26,6 @@ |
||
26 | 26 | */ |
27 | 27 | public function filterHiddenGiftItems(array $items = []) |
28 | 28 | { |
29 | - return array_filter($items, function ($item) { return !$item->getIsHiddenGift(); }); |
|
29 | + return array_filter($items, function($item) { return !$item->getIsHiddenGift(); }); |
|
30 | 30 | } |
31 | 31 | } |
@@ -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 | { |