@@ -101,7 +101,7 @@ |
||
| 101 | 101 | // return array containing config product's id and an empty array otherwise |
| 102 | 102 | $this->configTypeResource->expects($this->any()) |
| 103 | 103 | ->method('getParentIdsByChild') |
| 104 | - ->will($this->returnCallback(function ($childId) use ($configId, $simpleId) { |
|
| 104 | + ->will($this->returnCallback(function($childId) use ($configId, $simpleId) { |
|
| 105 | 105 | return $childId === $simpleId ? array($configId) : array(); |
| 106 | 106 | })); |
| 107 | 107 | |
@@ -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 | { |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | { |
| 85 | 85 | $this->replaceByMock('resource_model', 'catalog/category_collection', $catCol); |
| 86 | 86 | $this->assertSame( |
| 87 | - array(1,2,3,31), // everything except Luma Root-Outerwear |
|
| 87 | + array(1, 2, 3, 31), // everything except Luma Root-Outerwear |
|
| 88 | 88 | Mage::helper('ebayenterprise_catalog/map_category')->extractCategoryIds($nodes) |
| 89 | 89 | ); |
| 90 | 90 | } |
@@ -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 | { |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | 'xslt_module' => 'EbayEnterprise_Catalog', |
| 91 | 91 | 'deleted_base_xpath' => 'sku', |
| 92 | 92 | ); |
| 93 | - $skus = array('45-4321' , '45-9432'); |
|
| 93 | + $skus = array('45-4321', '45-9432'); |
|
| 94 | 94 | $dData = array( |
| 95 | 95 | $skus[0] => array('gsi_client_id' => 'MAGTNA', 'catalog_id' => '45'), |
| 96 | 96 | $skus[1] => array('gsi_client_id' => 'MAGTNA', 'catalog_id' => '45') |
@@ -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 | { |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | ); |
| 81 | 81 | // stub the language helper to return stores for each website |
| 82 | 82 | $this->_getWebsiteStoresValueMap = array( |
| 83 | - array($this->_defaultWebsite, null, $this->_defaultStores), |
|
| 83 | + array($this->_defaultWebsite, null, $this->_defaultStores), |
|
| 84 | 84 | array($this->_website1, null, $this->_web1Stores), |
| 85 | 85 | ); |
| 86 | 86 | $this->_languageHelper = $this->getHelperMock('eb2ccore/languages', array('getWebsiteStores')); |
@@ -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 | { |
@@ -22,10 +22,10 @@ discard block |
||
| 22 | 22 | public function testLoadPimAttributesByProduct() |
| 23 | 23 | { |
| 24 | 24 | $config = array('the config'); |
| 25 | - $attributes = array('_gsi_client_id','sku'); |
|
| 25 | + $attributes = array('_gsi_client_id', 'sku'); |
|
| 26 | 26 | |
| 27 | 27 | $result = array(); |
| 28 | - for ($i=0; $i < 3; $i++) { |
|
| 28 | + for ($i = 0; $i < 3; $i++) { |
|
| 29 | 29 | $result[] = $this->getModelMockBuilder('ebayenterprise_catalog/pim_attribute') |
| 30 | 30 | ->disableOriginalConstructor() |
| 31 | 31 | ->getMock(); |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | 'client_id' => 'ClientId', |
| 101 | 101 | 'catalog_id' => 'CatalogId', |
| 102 | 102 | 'sku' => '45-12345', |
| 103 | - 'pim_attributes' => array(1,2,3), |
|
| 103 | + 'pim_attributes' => array(1, 2, 3), |
|
| 104 | 104 | ); |
| 105 | 105 | $pimProduct = Mage::getModel('ebayenterprise_catalog/pim_product', $constructorArgs); |
| 106 | 106 | $this->assertSame('ClientId', $pimProduct->getClientId()); |
@@ -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 | { |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | // Swallow libxml warnings. In this tightly controlled case, all that |
| 118 | 118 | // can be expected to be invalid in the XML is the language code so |
| 119 | 119 | // the warnings won't tell us anything more useful anyway. |
| 120 | - set_error_handler(function () { |
|
| 120 | + set_error_handler(function() { |
|
| 121 | 121 | }); |
| 122 | 122 | // Need to capture results instead of just returning them so the error |
| 123 | 123 | // handler used to swallow the libxml errors can be removed. |
@@ -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 | { |
@@ -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 | { |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | protected function _buildTestRequest() |
| 137 | 137 | { |
| 138 | - $coreHelper = $this->_helper; |
|
| 138 | + $coreHelper = $this->_helper; |
|
| 139 | 139 | $request = <<<REQUEST |
| 140 | 140 | <AddressValidationRequest xmlns="http://api.gsicommerce.com/schema/checkout/1.0"> |
| 141 | 141 | <Header><MaxAddressSuggestions>3</MaxAddressSuggestions></Header> |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | // When the Net_SFTP instance failes to connect, it will trigger an error |
| 219 | 219 | // instead of throwing an exception. Convert the error to an exception |
| 220 | 220 | // so it can halt execution and be caught. |
| 221 | - set_error_handler(function ($errno, $errstr) { |
|
| 221 | + set_error_handler(function($errno, $errstr) { |
|
| 222 | 222 | throw new EbayEnterprise_Eb2cCore_Exception_Sftp_Configuration($errstr); |
| 223 | 223 | }, E_USER_NOTICE); |
| 224 | 224 | try { |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | <PostalCode>19406</PostalCode> |
| 148 | 148 | </Address> |
| 149 | 149 | </AddressValidationRequest> |
| 150 | -REQUEST; |
|
| 150 | +request; |
|
| 151 | 151 | $dom = $coreHelper->getNewDomDocument(); |
| 152 | 152 | $dom->loadXml($request); |
| 153 | 153 | return $dom; |
@@ -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 | { |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | public function schemaValidate(DOMDocument $doc, $xsdName) |
| 172 | 172 | { |
| 173 | 173 | $errors = array(); |
| 174 | - set_error_handler(function ($errno, $errstr) use (&$errors) { |
|
| 174 | + set_error_handler(function($errno, $errstr) use (&$errors) { |
|
| 175 | 175 | $errors[] = "'$errstr' [Errno $errno]"; |
| 176 | 176 | }); |
| 177 | 177 | $cfg = Mage::helper('eb2ccore')->getConfigModel(); |
@@ -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 | { |
@@ -123,8 +123,7 @@ discard block |
||
| 123 | 123 | { |
| 124 | 124 | $address = $quote->getBillingAddress(); |
| 125 | 125 | return $address ? |
| 126 | - $this->_extractAddressData($address) : |
|
| 127 | - array(); |
|
| 126 | + $this->_extractAddressData($address) : array(); |
|
| 128 | 127 | } |
| 129 | 128 | /** |
| 130 | 129 | * Extract quote amounts from each address. |
@@ -134,7 +133,7 @@ discard block |
||
| 134 | 133 | protected function _extractQuoteAmounts(Mage_Sales_Model_Quote $quote) |
| 135 | 134 | { |
| 136 | 135 | return array_map( |
| 137 | - function ($address) { |
|
| 136 | + function($address) { |
|
| 138 | 137 | return array( |
| 139 | 138 | 'subtotal' => round($address->getSubtotal(), 4) ?: 0.0000, |
| 140 | 139 | 'discount' => round($address->getDiscountAmount(), 4) ?: 0.0000, |
@@ -176,8 +175,7 @@ discard block |
||
| 176 | 175 | protected function _diffBilling(array $oldAddress, array $newAddress) |
| 177 | 176 | { |
| 178 | 177 | return ($oldAddress !== $newAddress) ? |
| 179 | - array('billing' => $newAddress) : |
|
| 180 | - array(); |
|
| 178 | + array('billing' => $newAddress) : array(); |
|
| 181 | 179 | } |
| 182 | 180 | /** |
| 183 | 181 | * Diff the old coupon to the new coupon. Return array of coupon data if coupon |
@@ -190,8 +188,7 @@ discard block |
||
| 190 | 188 | protected function _diffCoupon($oldCoupon, $newCoupon) |
| 191 | 189 | { |
| 192 | 190 | return ($oldCoupon !== $newCoupon) ? |
| 193 | - array('coupon' => $newCoupon) : |
|
| 194 | - array(); |
|
| 191 | + array('coupon' => $newCoupon) : array(); |
|
| 195 | 192 | } |
| 196 | 193 | /** |
| 197 | 194 | * Diff the old shipping data to the new shipping data. Any change to shipping |
@@ -203,8 +200,7 @@ discard block |
||
| 203 | 200 | protected function _diffShipping($oldShipping, $newShipping) |
| 204 | 201 | { |
| 205 | 202 | return ($oldShipping !== $newShipping) ? |
| 206 | - array('shipping' => $newShipping) : |
|
| 207 | - array(); |
|
| 203 | + array('shipping' => $newShipping) : array(); |
|
| 208 | 204 | } |
| 209 | 205 | /** |
| 210 | 206 | * Diff quote item quantities between the old items and new items. Diff should only check for |
@@ -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 | { |