@@ -110,6 +110,7 @@ discard block |
||
110 | 110 | * Retrieve item object by quote item Id |
111 | 111 | * |
112 | 112 | * @param int |
113 | + * @param integer $itemId |
|
113 | 114 | * @return Mage_Sales_Model_Orders_Item |
114 | 115 | */ |
115 | 116 | public function getItemByQuoteItemId($itemId) |
@@ -121,6 +122,7 @@ discard block |
||
121 | 122 | * Remove item from collection |
122 | 123 | * |
123 | 124 | * @param int |
125 | + * @param integer $itemId |
|
124 | 126 | * @return self |
125 | 127 | */ |
126 | 128 | public function removeItem($itemId) |
@@ -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; |
@@ -29,7 +29,9 @@ |
||
29 | 29 | * @param bool |
30 | 30 | * @param int |
31 | 31 | * @param string |
32 | - * @return Mage_Sales_Model_Order_Address |
|
32 | + * @param integer $addressId |
|
33 | + * @param integer $orderId |
|
34 | + * @return EcomDev_PHPUnit_Mock_Proxy |
|
33 | 35 | */ |
34 | 36 | protected function _stubAddress($addressId, $isPrimaryShipping, $orderId, $addressType) |
35 | 37 | { |
@@ -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 | { |
@@ -34,6 +34,8 @@ |
||
34 | 34 | * |
35 | 35 | * @param int |
36 | 36 | * @param int |
37 | + * @param integer $addressId |
|
38 | + * @param integer $orderId |
|
37 | 39 | * @return EbayEnterprise_Multishipping_Override_Model_Sales_Order_Address |
38 | 40 | */ |
39 | 41 | protected function _getPrimaryShippingAddress($addressId, $orderId) |
@@ -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 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * Create a stub order address with the provided address type. |
120 | 120 | * |
121 | 121 | * @param string |
122 | - * @return Mage_Sales_Model_Order_Address |
|
122 | + * @return EcomDev_PHPUnit_Mock_Proxy |
|
123 | 123 | */ |
124 | 124 | protected function _stubOrderAddress($type) |
125 | 125 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * |
134 | 134 | * @param string |
135 | 135 | * @param Mage_Sales_Model_Quote_Item_Abstract[] |
136 | - * @return Mage_Sales_Model_Quote_Address |
|
136 | + * @return EcomDev_PHPUnit_Mock_Proxy |
|
137 | 137 | */ |
138 | 138 | protected function _stubQuoteAddress($type, array $items = []) |
139 | 139 | { |
@@ -149,7 +149,8 @@ discard block |
||
149 | 149 | * |
150 | 150 | * @param string|null |
151 | 151 | * @param Mage_Sales_Model_Quote_Item_Abstract|null |
152 | - * @return Mage_Sales_Model_Quote_Item_Abstract |
|
152 | + * @param string $productType |
|
153 | + * @return EcomDev_PHPUnit_Mock_Proxy |
|
153 | 154 | */ |
154 | 155 | protected function _stubQuoteItem( |
155 | 156 | $productType = null, |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $this->_checkoutDispatcher = $this->getHelperMock( |
57 | 57 | 'ebayenterprise_multishipping/dispatcher_interface', |
58 | - ['dispatchBeforeOrderSubmit', 'dispatchOrderSubmitSuccess', 'dispatchOrderSubmitFailure', 'dispatchAfterOrderSubmit',], |
|
58 | + ['dispatchBeforeOrderSubmit', 'dispatchOrderSubmitSuccess', 'dispatchOrderSubmitFailure', 'dispatchAfterOrderSubmit', ], |
|
59 | 59 | true |
60 | 60 | ); |
61 | 61 | $this->_multishippingFactory = $this->getHelperMock( |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | ); |
65 | 65 | $this->_quoteConvertor = $this->getModelMock( |
66 | 66 | 'sales/convert_quote', |
67 | - ['toOrder', 'addressToOrderAddress', 'itemToOrderItem', 'paymentToOrderPayment',] |
|
67 | + ['toOrder', 'addressToOrderAddress', 'itemToOrderItem', 'paymentToOrderPayment', ] |
|
68 | 68 | ); |
69 | 69 | $this->_transaction = $this->getModelMock( |
70 | 70 | 'core/resource_transaction', |
@@ -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 | { |
@@ -350,7 +350,7 @@ |
||
350 | 350 | /** |
351 | 351 | * Ensure the proper data exist in before proceeding to show the current page. |
352 | 352 | * |
353 | - * @return self |
|
353 | + * @return boolean |
|
354 | 354 | */ |
355 | 355 | protected function _isValidOperation() |
356 | 356 | { |
@@ -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 | { |
@@ -75,7 +75,7 @@ |
||
75 | 75 | /** |
76 | 76 | * Determine if order cancel reasons are configured. |
77 | 77 | * |
78 | - * @return array | null |
|
78 | + * @return boolean | null |
|
79 | 79 | */ |
80 | 80 | public function hasOrderCancelReason() |
81 | 81 | { |
@@ -126,7 +126,7 @@ |
||
126 | 126 | * |
127 | 127 | * @param IPayload |
128 | 128 | * @param string |
129 | - * @return array |
|
129 | + * @return string |
|
130 | 130 | */ |
131 | 131 | public function getListAsSerialize(IPayload $payload, $getter) |
132 | 132 | { |
@@ -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 | { |
@@ -67,7 +67,7 @@ |
||
67 | 67 | } |
68 | 68 | /** |
69 | 69 | * Extract the name of the order event from the order event XML. |
70 | - * @param string $message OrderEvent XML |
|
70 | + * @param string $messageDoc OrderEvent XML |
|
71 | 71 | * @return string |
72 | 72 | * @throws EbayEnterprise_Amqp_Exception_Invalid_Message If message could not be parsed for event name |
73 | 73 | */ |
@@ -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 | { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * Return the value at field in array if it exists. Otherwise, use the |
60 | 60 | * default value. |
61 | 61 | * @param array $arr |
62 | - * @param string|int $field Valid array key |
|
62 | + * @param string $field Valid array key |
|
63 | 63 | * @param mixed $default |
64 | 64 | * @return mixed |
65 | 65 | */ |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * |
141 | 141 | * @param IShipGroupIterable |
142 | 142 | * @param Mage_Sales_Model_Order_Item[] |
143 | - * @return array |
|
143 | + * @return EbayEnterprise_Order_Model_Create_Itemreferencepair[] |
|
144 | 144 | */ |
145 | 145 | protected function removeVirtualGiftCardPayloads(IShipGroupIterable $shipGroups, array $virtualGiftCards) |
146 | 146 | { |
@@ -391,6 +391,7 @@ discard block |
||
391 | 391 | * |
392 | 392 | * @param Varien_Object[] |
393 | 393 | * @param string |
394 | + * @param string $indexField |
|
394 | 395 | * @return Varien_Object[] |
395 | 396 | */ |
396 | 397 | protected function createItemIndex(array $items, $indexField) |
@@ -13,15 +13,15 @@ |
||
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\Order\IOrderDestinationIterable; |
|
16 | +use Psr\Log\LoggerInterface; |
|
17 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IEmailAddressDestination; |
18 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderCreateRequest; |
19 | +use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderDestinationIterable; |
|
19 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderItemReference; |
20 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderItemReferenceIterable; |
22 | +use eBayEnterprise\RetailOrderManagement\Payload\Order\IPriceGroup; |
|
21 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IShipGroup; |
22 | 24 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IShipGroupIterable; |
23 | -use eBayEnterprise\RetailOrderManagement\Payload\Order\IPriceGroup; |
|
24 | -use Psr\Log\LoggerInterface; |
|
25 | 25 | |
26 | 26 | class EbayEnterprise_Order_Helper_Giftcard |
27 | 27 | { |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | protected function getVirtualGiftCardItemReferences(IOrderItemReferenceIterable $itemRefs, array $virtualGiftCards) |
310 | 310 | { |
311 | 311 | return $this->mapItemReferenceToItem( |
312 | - function (IOrderItemReference $itemRef) { |
|
312 | + function(IOrderItemReference $itemRef) { |
|
313 | 313 | return $itemRef; |
314 | 314 | }, |
315 | 315 | $itemRefs, |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | protected function createItemReferencePairs(array $itemRefs, array $virtualGiftCards) |
329 | 329 | { |
330 | 330 | return $this->mapItemReferenceToItem( |
331 | - function (IOrderItemReference $itemRef, Mage_Sales_Model_Order_Item $item) { |
|
331 | + function(IOrderItemReference $itemRef, Mage_Sales_Model_Order_Item $item) { |
|
332 | 332 | return $this->createItemReferencePair($item, $itemRef); |
333 | 333 | }, |
334 | 334 | $itemRefs, |
@@ -344,7 +344,7 @@ |
||
344 | 344 | * @param Mage_Sales_Model_Order_Item[] |
345 | 345 | * @return array |
346 | 346 | */ |
347 | - protected function mapItemReferenceToItem(Callable $cb, $itemRefs, array $virtualGiftCards) |
|
347 | + protected function mapItemReferenceToItem(callable $cb, $itemRefs, array $virtualGiftCards) |
|
348 | 348 | { |
349 | 349 | $itemIndex = $this->createItemIndex($virtualGiftCards, 'line_number'); |
350 | 350 | $res = []; |
@@ -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 | { |