@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | |
| 505 | 505 | /** |
| 506 | 506 | * stub items for the tests. |
| 507 | - * @return Mage_Sale_Model_Quote_Item[] |
|
| 507 | + * @return EcomDev_PHPUnit_Mock_Proxy[] |
|
| 508 | 508 | */ |
| 509 | 509 | protected function stubQuoteItems() |
| 510 | 510 | { |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | /** |
| 719 | 719 | * stub the specified methods on the mock to expect a |
| 720 | 720 | * string argument and return itself |
| 721 | - * @param array $methods |
|
| 721 | + * @param string[] $methods |
|
| 722 | 722 | * @param object $stub |
| 723 | 723 | * @return object |
| 724 | 724 | */ |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | +use Psr\Log\NullLogger; |
|
| 16 | 17 | use eBayEnterprise\RetailOrderManagement\Api; |
| 17 | 18 | use eBayEnterprise\RetailOrderManagement\Payload; |
| 18 | 19 | use eBayEnterprise\RetailOrderManagement\Payload\PayloadMap; |
| 19 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\ValidatorIterator; |
| 20 | -use Psr\Log\NullLogger; |
|
| 21 | 21 | |
| 22 | 22 | class EbayEnterprise_PayPal_Test_Model_Express_ApiTest extends EbayEnterprise_Eb2cCore_Test_Base |
| 23 | 23 | { |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | protected function isNumeric() |
| 567 | 567 | { |
| 568 | 568 | return $this->callback( |
| 569 | - function ($val) { |
|
| 569 | + function($val) { |
|
| 570 | 570 | |
| 571 | 571 | return is_numeric($val); |
| 572 | 572 | } |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | protected function isScalar() |
| 709 | 709 | { |
| 710 | 710 | return $this->callback( |
| 711 | - function ($val) { |
|
| 711 | + function($val) { |
|
| 712 | 712 | |
| 713 | 713 | return is_scalar($val); |
| 714 | 714 | } |
@@ -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 @@ discard block |
||
| 48 | 48 | * @param EbayEnterprise_Eb2cCore_Helper_Data |
| 49 | 49 | * @param EbayEnterprise_Catalog_Helper_Data |
| 50 | 50 | * @param EbayEnterprise_Eb2cCore_Model_Config_Registry |
| 51 | - * @return array |
|
| 51 | + * @return EbayEnterprise_Eb2cCore_Model_Config_Registry[] |
|
| 52 | 52 | */ |
| 53 | 53 | protected function _checkTypes( |
| 54 | 54 | EbayEnterprise_Eb2cCore_Helper_Data $coreHelper, |
@@ -60,9 +60,9 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Return the value of field in array if it exists. Otherwise, use the default value. |
| 62 | 62 | * @param array |
| 63 | - * @param string|int $field Valid array key |
|
| 63 | + * @param string $field Valid array key |
|
| 64 | 64 | * @param mixed |
| 65 | - * @return mixed |
|
| 65 | + * @return EbayEnterprise_Eb2cCore_Model_Config_Registry |
|
| 66 | 66 | */ |
| 67 | 67 | protected function _nullCoalesce(array $arr, $field, $default) |
| 68 | 68 | { |
@@ -237,6 +237,7 @@ discard block |
||
| 237 | 237 | * get product image data for product that doesn't exceed the self::SKU_MAX_LENGTH |
| 238 | 238 | * @param int |
| 239 | 239 | * @param string |
| 240 | + * @param integer $storeId |
|
| 240 | 241 | * @return array |
| 241 | 242 | * Example: [ |
| 242 | 243 | * [ |
@@ -395,6 +396,7 @@ discard block |
||
| 395 | 396 | /** |
| 396 | 397 | * @param string |
| 397 | 398 | * @param string |
| 399 | + * @param string $path |
|
| 398 | 400 | * @return self |
| 399 | 401 | */ |
| 400 | 402 | protected function _updateConfig($path, $value) |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | { |
| 275 | 275 | $media = $product->getMediaGalleryImages(); |
| 276 | 276 | |
| 277 | - return ($media && $media->count())? |
|
| 277 | + return ($media && $media->count()) ? |
|
| 278 | 278 | [ |
| 279 | 279 | 'id' => $product->getSku(), |
| 280 | 280 | 'image_data' => $this->_getMediaData($media, $product) |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | protected function _getMageImageViewMap(Mage_Catalog_Model_Product $mageProduct) |
| 348 | 348 | { |
| 349 | 349 | $attributes = $mageProduct->getAttributes(); |
| 350 | - return array_reduce(array_keys($attributes), function ($result = [], $key) use ($attributes, $mageProduct) { |
|
| 350 | + return array_reduce(array_keys($attributes), function($result = [], $key) use ($attributes, $mageProduct) { |
|
| 351 | 351 | if (!strcmp($attributes[$key]->getFrontendInput(), EbayEnterprise_ProductImageExport_Model_Image_Export::FRONTEND_INPUT)) { |
| 352 | 352 | $result[$key] = $mageProduct->getData($key); |
| 353 | 353 | } |
@@ -362,11 +362,11 @@ discard block |
||
| 362 | 362 | */ |
| 363 | 363 | protected function _filterImageViews(array $imageViews) |
| 364 | 364 | { |
| 365 | - $views = array_filter(array_keys($imageViews), function ($key) use ($imageViews) { |
|
| 365 | + $views = array_filter(array_keys($imageViews), function($key) use ($imageViews) { |
|
| 366 | 366 | return ($imageViews[$key] !== EbayEnterprise_ProductImageExport_Model_Image_Export::FILTER_OUT_VALUE); |
| 367 | 367 | }); |
| 368 | 368 | |
| 369 | - return !empty($views)? $views : ['']; |
|
| 369 | + return !empty($views) ? $views : ['']; |
|
| 370 | 370 | } |
| 371 | 371 | /** |
| 372 | 372 | * @return Mage_Core_Model_Config_Data |
@@ -34,8 +34,7 @@ discard block |
||
| 34 | 34 | * @param int $taxSource Should be one of the tax record source consts. |
| 35 | 35 | * @param int |
| 36 | 36 | * @param int |
| 37 | - * @param int|null $itemId Address level taxes may not have an associated item id. |
|
| 38 | - * @param ITax $taxPayload|null SDK payload of tax data to use to populate the tax record. |
|
| 37 | + * @param ITax $taxPayload SDK payload of tax data to use to populate the tax record. |
|
| 39 | 38 | * @param array $recordData Tax record data to be set directly on the tax record. May be used in place of an ITax payload. |
| 40 | 39 | * @return EbayEnterprise_Tax_Model_Record |
| 41 | 40 | */ |
@@ -65,6 +64,8 @@ discard block |
||
| 65 | 64 | * @param int $taxSource Should be one of hte tax record source consts. |
| 66 | 65 | * @param int |
| 67 | 66 | * @param int |
| 67 | + * @param integer $quoteId |
|
| 68 | + * @param integer $addressId |
|
| 68 | 69 | * @return EbayEnterprise_Tax_Model_Record[] |
| 69 | 70 | */ |
| 70 | 71 | public function createTaxRecordsForTaxContainer( |
@@ -128,6 +129,8 @@ discard block |
||
| 128 | 129 | * @param ITaxedDutyPriceGroup |
| 129 | 130 | * @param int |
| 130 | 131 | * @param int |
| 132 | + * @param integer $itemId |
|
| 133 | + * @param integer $addressId |
|
| 131 | 134 | * @return EbayEnterprise_Tax_Model_Duty |
| 132 | 135 | */ |
| 133 | 136 | public function createTaxDuty( |
@@ -185,6 +188,8 @@ discard block |
||
| 185 | 188 | * @param Mage_Sales_Model_Quote_Item_Abstract |
| 186 | 189 | * @param int |
| 187 | 190 | * @param int |
| 191 | + * @param integer $addressId |
|
| 192 | + * @param integer $quoteId |
|
| 188 | 193 | * @return EbayEnterprise_Tax_Model_Response_Parser_Item |
| 189 | 194 | */ |
| 190 | 195 | public function createResponseItemParser( |
@@ -17,6 +17,7 @@ discard block |
||
| 17 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IDestinationIterable; |
| 18 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IOrderItemRequestIterable; |
| 19 | 19 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IShipGroupIterable; |
| 20 | +use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxContainer; |
|
| 20 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxDutyFeeQuoteReply; |
| 21 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxDutyFeeQuoteRequest; |
| 22 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedDutyPriceGroup; |
@@ -24,7 +25,6 @@ discard block |
||
| 24 | 25 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedFeeIterable; |
| 25 | 26 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedOrderItem; |
| 26 | 27 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxedShipGroup; |
| 27 | -use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\ITaxContainer; |
|
| 28 | 28 | |
| 29 | 29 | class EbayEnterprise_Tax_Helper_Factory |
| 30 | 30 | { |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | ) { |
| 155 | 155 | return Mage::getModel( |
| 156 | 156 | 'ebayenterprise_tax/response_parser_quote', |
| 157 | - ['tax_response' => $taxResponse, 'quote' => $quote,] |
|
| 157 | + ['tax_response' => $taxResponse, 'quote' => $quote, ] |
|
| 158 | 158 | ); |
| 159 | 159 | } |
| 160 | 160 | |
@@ -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 | { |
@@ -73,6 +73,7 @@ discard block |
||
| 73 | 73 | * @param array |
| 74 | 74 | * @param string |
| 75 | 75 | * @param mixed |
| 76 | + * @param string $key |
|
| 76 | 77 | * @return mixed |
| 77 | 78 | */ |
| 78 | 79 | protected function _nullCoalesce(array $arr, $key, $default) |
@@ -110,6 +111,7 @@ discard block |
||
| 110 | 111 | * Set whether the last tax request made was successful. |
| 111 | 112 | * |
| 112 | 113 | * @param bool |
| 114 | + * @param boolean $success |
|
| 113 | 115 | * @return self |
| 114 | 116 | */ |
| 115 | 117 | public function setTaxRequestSuccess($success) |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | { |
| 139 | 139 | return array_filter( |
| 140 | 140 | $this->getTaxRecords(), |
| 141 | - function ($record) use ($addressId) { |
|
| 141 | + function($record) use ($addressId) { |
|
| 142 | 142 | return $record->getAddressId() === $addressId; |
| 143 | 143 | } |
| 144 | 144 | ); |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | { |
| 155 | 155 | return array_filter( |
| 156 | 156 | $this->getTaxRecords(), |
| 157 | - function ($record) use ($itemId) { |
|
| 157 | + function($record) use ($itemId) { |
|
| 158 | 158 | return $record->getItemId() === $itemId; |
| 159 | 159 | } |
| 160 | 160 | ); |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | { |
| 211 | 211 | return array_filter( |
| 212 | 212 | $this->getTaxDuties(), |
| 213 | - function ($duty) use ($addressId) { |
|
| 213 | + function($duty) use ($addressId) { |
|
| 214 | 214 | return $duty->getAddressId() === $addressId; |
| 215 | 215 | } |
| 216 | 216 | ); |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | { |
| 249 | 249 | return array_filter( |
| 250 | 250 | $this->getTaxFees(), |
| 251 | - function ($fee) use ($itemId) { |
|
| 251 | + function($fee) use ($itemId) { |
|
| 252 | 252 | return $fee->getItemId() === $itemId; |
| 253 | 253 | } |
| 254 | 254 | ); |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | { |
| 265 | 265 | return array_filter( |
| 266 | 266 | $this->getTaxFees(), |
| 267 | - function ($fee) use ($addressId) { |
|
| 267 | + function($fee) use ($addressId) { |
|
| 268 | 268 | return $fee->getAddressId() === $addressId; |
| 269 | 269 | } |
| 270 | 270 | ); |
@@ -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 | { |
@@ -118,6 +118,7 @@ |
||
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * @param string |
| 121 | + * @param string $type |
|
| 121 | 122 | * @return string |
| 122 | 123 | */ |
| 123 | 124 | public function setType($type) |
@@ -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 | { |
@@ -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 | { |
@@ -13,9 +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\Order\IDiscountContainer; |
|
| 16 | 17 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IOrderItem; |
| 17 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\Order\ITaxContainer; |
| 18 | -use eBayEnterprise\RetailOrderManagement\Payload\Order\IDiscountContainer; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Adds Tax information to an OrderItem payload and its sub payloads. |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | // immediate remediation. |
| 248 | 248 | $feeTaxes = array_filter( |
| 249 | 249 | $feeTaxRecords, |
| 250 | - function ($taxRecord) use ($feeId) { |
|
| 250 | + function($taxRecord) use ($feeId) { |
|
| 251 | 251 | return $feeId && $feeId === $taxRecord->getFeeId(); |
| 252 | 252 | } |
| 253 | 253 | ); |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | // now, at least, it should be a small enough data set to not demand |
| 317 | 317 | // immediate remediation. |
| 318 | 318 | $this->_addTaxRecordsToContainer( |
| 319 | - array_filter($taxRecords, function ($taxRecord) use ($discountId) { |
|
| 319 | + array_filter($taxRecords, function($taxRecord) use ($discountId) { |
|
| 320 | 320 | return $discountId && $taxRecord->getDiscountId() == $discountId; |
| 321 | 321 | }), |
| 322 | 322 | $discountPayload |
@@ -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 | { |
@@ -78,6 +78,7 @@ discard block |
||
| 78 | 78 | * @param string |
| 79 | 79 | * @param array |
| 80 | 80 | * @param mixed |
| 81 | + * @param string $key |
|
| 81 | 82 | * @return mixed |
| 82 | 83 | */ |
| 83 | 84 | protected function _nullCoalesce(array $arr, $key, $default) |
@@ -134,7 +135,7 @@ discard block |
||
| 134 | 135 | /** |
| 135 | 136 | * Get the tax container for address level gifting taxes. |
| 136 | 137 | * |
| 137 | - * @return ITaxContainer |
|
| 138 | + * @return Payload\Order\ITaxIterable |
|
| 138 | 139 | */ |
| 139 | 140 | protected function _getTaxContainer() |
| 140 | 141 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | use eBayEnterprise\RetailOrderManagement\Payload\Order\IGifting; |
| 17 | -use eBayEnterprise\RetailOrderManagement\Payload\Order\ITax; |
|
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * Adds Tax information to an OrderItem payload and its sub payloads. |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | // gifting, and do not indicate a calculation error for the record. |
| 125 | 125 | return array_filter( |
| 126 | 126 | $this->_taxCollector->getTaxRecords(), |
| 127 | - function ($record) use ($addressId) { |
|
| 127 | + function($record) use ($addressId) { |
|
| 128 | 128 | return $record->getAddressId() === $addressId |
| 129 | 129 | && $record->getTaxSource() === EbayEnterprise_Tax_Model_Record::SOURCE_ADDRESS_GIFTING; |
| 130 | 130 | } |
@@ -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 | { |
@@ -109,6 +109,7 @@ discard block |
||
| 109 | 109 | * @param string |
| 110 | 110 | * @param array |
| 111 | 111 | * @param mixed |
| 112 | + * @param string $key |
|
| 112 | 113 | * @return mixed |
| 113 | 114 | */ |
| 114 | 115 | protected function _nullCoalesce(array $arr, $key, $default) |
@@ -119,7 +120,7 @@ discard block |
||
| 119 | 120 | /** |
| 120 | 121 | * Get the destination payload for the address. |
| 121 | 122 | * |
| 122 | - * @return IDestination|null |
|
| 123 | + * @return IDestination |
|
| 123 | 124 | */ |
| 124 | 125 | public function getDestinationPayload() |
| 125 | 126 | { |
@@ -129,7 +130,7 @@ discard block |
||
| 129 | 130 | /** |
| 130 | 131 | * Get the ship group payload for the address. |
| 131 | 132 | * |
| 132 | - * @return IShipGroup|null |
|
| 133 | + * @return IShipGroup |
|
| 133 | 134 | */ |
| 134 | 135 | public function getShipGroupPayload() |
| 135 | 136 | { |
@@ -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\Payload\TaxDutyFee\IShipGroupIterable; |
|
| 17 | 16 | use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IDestinationIterable; |
| 17 | +use eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee\IShipGroupIterable; |
|
| 18 | 18 | |
| 19 | 19 | class EbayEnterprise_Tax_Model_Request_Builder_Address |
| 20 | 20 | { |
@@ -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 | { |