@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * Return the value at field in array if it exists. Otherwise, use the |
| 130 | 130 | * default value. |
| 131 | 131 | * @param array $arr |
| 132 | - * @param string|int $field Valid array key |
|
| 132 | + * @param string $field Valid array key |
|
| 133 | 133 | * @param mixed $default |
| 134 | 134 | * @return mixed |
| 135 | 135 | */ |
@@ -370,7 +370,6 @@ discard block |
||
| 370 | 370 | * Log the different requests consistently. |
| 371 | 371 | * |
| 372 | 372 | * @param string $type 'balance', 'redeem', 'void' |
| 373 | - * @param string $body the serialized xml body |
|
| 374 | 373 | * @param string $direction 'request' or 'response' |
| 375 | 374 | */ |
| 376 | 375 | protected function logApiCall($type, $direction) |
@@ -665,6 +664,8 @@ discard block |
||
| 665 | 664 | * @param IBidirectionalApi |
| 666 | 665 | * @param bool |
| 667 | 666 | * @param string |
| 667 | + * @param boolean $isRequest |
|
| 668 | + * @param string $logMessage |
|
| 668 | 669 | */ |
| 669 | 670 | protected function logStoredValuePayload(IBidirectionalApi $api, $isRequest, $logMessage) |
| 670 | 671 | { |
@@ -13,14 +13,14 @@ |
||
| 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; |
|
| 16 | +use Psr\Log\LoggerInterface; |
|
| 17 | +use Psr\Log\NullLogger; |
|
| 17 | 18 | use eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError; |
| 18 | 19 | use eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction; |
| 19 | 20 | use eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation; |
| 21 | +use eBayEnterprise\RetailOrderManagement\Api\IBidirectionalApi; |
|
| 20 | 22 | use eBayEnterprise\RetailOrderManagement\Payload; |
| 21 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload; |
| 22 | -use Psr\Log\LoggerInterface; |
|
| 23 | -use Psr\Log\NullLogger; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Model representing a gift card that has been applied to an order. |
@@ -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 | { |
@@ -46,7 +46,8 @@ |
||
| 46 | 46 | * @param array |
| 47 | 47 | * @param string | int $field Valid array key |
| 48 | 48 | * @param mixed |
| 49 | - * @return mixed |
|
| 49 | + * @param string $field |
|
| 50 | + * @return EbayEnterprise_Eb2cCore_Helper_Data |
|
| 50 | 51 | */ |
| 51 | 52 | protected function nullCoalesce(array $arr, $field, $default) |
| 52 | 53 | { |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | * @param bool |
| 120 | 120 | * @return self |
| 121 | 121 | */ |
| 122 | - protected function doTheMasking(DOMDocument $doc, DOMXPath $xpath, array $nodes, $hasAttribute=false) |
|
| 122 | + protected function doTheMasking(DOMDocument $doc, DOMXPath $xpath, array $nodes, $hasAttribute = false) |
|
| 123 | 123 | { |
| 124 | 124 | foreach ($nodes as $node => $expression) { |
| 125 | 125 | /** @var DOMElement */ |
@@ -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 | { |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * Return the value at field in array if it exists. Otherwise, use the |
| 75 | 75 | * default value. |
| 76 | 76 | * @param array $arr |
| 77 | - * @param string|int $field Valid array key |
|
| 77 | + * @param string $field Valid array key |
|
| 78 | 78 | * @param mixed $default |
| 79 | 79 | * @return mixed |
| 80 | 80 | */ |
@@ -147,7 +147,6 @@ discard block |
||
| 147 | 147 | * Redeem the gift card and handle any errors encountered while redeeming |
| 148 | 148 | * the gift card. Return the amount redeemed from the card. |
| 149 | 149 | * @param EbayEnterprise_GiftCard_Model_IGiftcard $card |
| 150 | - * @param string $orderId |
|
| 151 | 150 | * @return float |
| 152 | 151 | * @throws EbayEnterprise_GiftCard_Exception If card could not be redeemed for for the expected amount |
| 153 | 152 | */ |
@@ -236,8 +235,7 @@ discard block |
||
| 236 | 235 | * Redeem the gift card for the requested amount and return the amount that |
| 237 | 236 | * was actually redeemed for the card. |
| 238 | 237 | * @param EbayEnterprise_GiftCard_Model_IGiftcard $card |
| 239 | - * @param float $amount |
|
| 240 | - * @return self |
|
| 238 | + * @return EbayEnterprise_GiftCard_Model_IGiftcard |
|
| 241 | 239 | */ |
| 242 | 240 | protected function _redeemVoidCard(EbayEnterprise_GiftCard_Model_IGiftcard $card) |
| 243 | 241 | { |
@@ -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 | { |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * ensure correct types |
| 33 | 33 | * @param EbayEnterprise_GiftCard_Model_IContainer $container |
| 34 | - * @return array |
|
| 34 | + * @return EbayEnterprise_GiftCard_Model_IContainer[] |
|
| 35 | 35 | */ |
| 36 | 36 | protected function _enforceTypes(EbayEnterprise_GiftCard_Model_IContainer $container) |
| 37 | 37 | { |
@@ -72,6 +72,11 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | + /** |
|
| 76 | + * @param string $key |
|
| 77 | + * |
|
| 78 | + * @return EbayEnterprise_GiftCard_Model_IContainer |
|
| 79 | + */ |
|
| 75 | 80 | protected function _nullCoalesce($key, array $args, $default) |
| 76 | 81 | { |
| 77 | 82 | return isset($args[$key]) ? $args[$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 | { |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | /** |
| 49 | 49 | * Get the gift card object currently being applied or checked. |
| 50 | 50 | * |
| 51 | - * @return EbayEnterprise_GiftCard_Model_IGiftcard|null |
|
| 51 | + * @return EbayEnterprise_GiftCard_Model_Giftcard|null |
|
| 52 | 52 | */ |
| 53 | 53 | public function getEbayEnterpriseCurrentGiftCard($clear = false) |
| 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 | { |
@@ -82,6 +82,9 @@ discard block |
||
| 82 | 82 | return func_get_args(); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | + /** |
|
| 86 | + * @param string $key |
|
| 87 | + */ |
|
| 85 | 88 | protected function nullCoalesce(array $arr, $key, $default) |
| 86 | 89 | { |
| 87 | 90 | return isset($arr[$key]) ? $arr[$key] : $default; |
@@ -176,6 +179,8 @@ discard block |
||
| 176 | 179 | * |
| 177 | 180 | * @param string |
| 178 | 181 | * @param string |
| 182 | + * @param string $responseCode |
|
| 183 | + * @param string $responseMessage |
|
| 179 | 184 | * @return EbayEnterprise_GiftCard_Exception_InvalidCardNumber_Exception |
| 180 | 185 | */ |
| 181 | 186 | protected function createLookupFailedException($responseCode, $responseMessage) |
@@ -221,6 +226,7 @@ discard block |
||
| 221 | 226 | * |
| 222 | 227 | * @param ILookupRequest |
| 223 | 228 | * @param string |
| 229 | + * @param string $logMessage |
|
| 224 | 230 | * @return self |
| 225 | 231 | */ |
| 226 | 232 | protected function logRequest(ILookupRequest $request, $logMessage) |
@@ -13,14 +13,13 @@ |
||
| 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 | use eBayEnterprise\RetailOrderManagement\Payload\Payment\TenderType\ILookupReply; |
| 22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\Payment\TenderType\ILookupRequest; |
| 23 | -use PSR\Log\NullLogger; |
|
| 24 | 23 | |
| 25 | 24 | /** |
| 26 | 25 | * performs gift card tender type lookups using the Retail Order Management |
@@ -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 | { |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @param EbayEnterprise_GiftCard_Helper_Data |
| 45 | 45 | * @param EbayEnterprise_GiftCard_Model_IContainer |
| 46 | - * @return array |
|
| 46 | + * @return EbayEnterprise_GiftCard_Model_IContainer[] |
|
| 47 | 47 | */ |
| 48 | 48 | protected function _checkTypes( |
| 49 | 49 | EbayEnterprise_GiftCard_Helper_Data $helper, |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * @param array $arr |
| 58 | 58 | * @param string $field |
| 59 | 59 | * @param mixed $default |
| 60 | - * @return mixed |
|
| 60 | + * @return EbayEnterprise_GiftCard_Model_IContainer |
|
| 61 | 61 | */ |
| 62 | 62 | protected function _nullCoalesce(array $arr = array(), $field, $default) |
| 63 | 63 | { |
@@ -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 | { |
@@ -112,6 +112,7 @@ discard block |
||
| 112 | 112 | * Determine if the passed in street date string is in the future. |
| 113 | 113 | * |
| 114 | 114 | * @param string |
| 115 | + * @param string $streetDate |
|
| 115 | 116 | * @return bool |
| 116 | 117 | */ |
| 117 | 118 | protected function isStreetDateInTheFuture($streetDate) |
@@ -125,6 +126,7 @@ discard block |
||
| 125 | 126 | * Using configuration setting to determine the to date for street date. |
| 126 | 127 | * |
| 127 | 128 | * @param string |
| 129 | + * @param string $streetDate |
|
| 128 | 130 | * @return DateTime |
| 129 | 131 | */ |
| 130 | 132 | protected function getStreetToDate($streetDate) |
@@ -130,7 +130,7 @@ |
||
| 130 | 130 | protected function getStreetToDate($streetDate) |
| 131 | 131 | { |
| 132 | 132 | $toDate = $this->getNewDateTime($streetDate); |
| 133 | - $intervalSpec = "P{$this->coreConfig->toStreetDateRange}D"; |
|
| 133 | + $intervalSpec = "p{$this->coreConfig->toStreetDateRange}d"; |
|
| 134 | 134 | return $toDate->add($this->getNewDateInterval($intervalSpec)); |
| 135 | 135 | } |
| 136 | 136 | |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | Mage_Sales_Model_Order $order, |
| 60 | 60 | $shipmentId, |
| 61 | 61 | $trackingNumber=null |
| 62 | - ) |
|
| 63 | - { |
|
| 62 | + ) { |
|
| 64 | 63 | return func_get_args(); |
| 65 | 64 | } |
| 66 | 65 | |
@@ -13,10 +13,9 @@ |
||
| 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\IDetailItem; |
|
| 16 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\Inventory\IItem; |
| 17 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\Inventory\IOrderItem; |
| 18 | -use eBayEnterprise\RetailOrderManagement\Payload\Inventory\IDetailItem; |
|
| 19 | -use eBayEnterprise\RetailOrderManagement\Payload\Inventory\IAddress; |
|
| 20 | 19 | |
| 21 | 20 | class EbayEnterprise_Inventory_Helper_Details_Item |
| 22 | 21 | { |
@@ -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 | { |