@@ -121,6 +121,7 @@ discard block |
||
| 121 | 121 | * Build a mock tax record with the given quote address id. |
| 122 | 122 | * |
| 123 | 123 | * @param int |
| 124 | + * @param integer $quoteAddressId |
|
| 124 | 125 | * @return EbayEnterprise_Tax_Model_Record |
| 125 | 126 | */ |
| 126 | 127 | protected function _buildMockTaxRecord($quoteAddressId) |
@@ -142,6 +143,7 @@ discard block |
||
| 142 | 143 | * Build a mock tax record with the given quote address id. |
| 143 | 144 | * |
| 144 | 145 | * @param int |
| 146 | + * @param integer $itemId |
|
| 145 | 147 | * @return EbayEnterprise_Tax_Model_Duty |
| 146 | 148 | */ |
| 147 | 149 | protected function _buildMockTaxDuty($itemId) |
@@ -163,6 +165,7 @@ discard block |
||
| 163 | 165 | * Build a mock tax record with the given quote address id. |
| 164 | 166 | * |
| 165 | 167 | * @param int |
| 168 | + * @param integer $itemId |
|
| 166 | 169 | * @return EbayEnterprise_Tax_Model_Record |
| 167 | 170 | */ |
| 168 | 171 | protected function _buildMockTaxFee($itemId) |
@@ -113,6 +113,7 @@ |
||
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | 115 | * Mock a tax record to return the expected tax source and address id. |
| 116 | + * @param integer $addressId |
|
| 116 | 117 | */ |
| 117 | 118 | protected function _mockTaxRecord($taxSource, $addressId) |
| 118 | 119 | { |
@@ -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 | { |
@@ -91,6 +91,7 @@ discard block |
||
| 91 | 91 | * Build a mock tax record scripted to return the provided calculated tax amount. |
| 92 | 92 | * |
| 93 | 93 | * @param float |
| 94 | + * @param double $calculatedTaxAmount |
|
| 94 | 95 | * @return EbayEnterprise_Tax_Model_Record |
| 95 | 96 | */ |
| 96 | 97 | protected function _buildMockTaxRecord($calculatedTaxAmount) |
@@ -111,6 +112,7 @@ discard block |
||
| 111 | 112 | * Build a mock tax duty scripted to return the provided amount. |
| 112 | 113 | * |
| 113 | 114 | * @param float |
| 115 | + * @param double $dutyAmount |
|
| 114 | 116 | * @return EbayEnterprise_Tax_Model_Duty |
| 115 | 117 | */ |
| 116 | 118 | protected function _buildMockTaxDuty($dutyAmount) |
@@ -131,6 +133,7 @@ discard block |
||
| 131 | 133 | * Build a mock tax fee scripted to return the provided amount. |
| 132 | 134 | * |
| 133 | 135 | * @param float |
| 136 | + * @param double $feeAmount |
|
| 134 | 137 | * @return EbayEnterprise_Tax_Model_Fee |
| 135 | 138 | */ |
| 136 | 139 | protected function _buildMockTaxFee($feeAmount) |
@@ -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 | { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | class EbayEnterprise_Address_Block_Suggestions extends Mage_Core_Block_Template |
| 22 | 22 | { |
| 23 | 23 | // Name of the input field |
| 24 | - const SUGGESTION_INPUT_NAME = 'validation_option'; |
|
| 24 | + const SUGGESTION_INPUT_NAME = 'validation_option'; |
|
| 25 | 25 | /** |
| 26 | 26 | * Where to find the format template in the config registry |
| 27 | 27 | * @see EbayEnterprise_Address_Model_Config::$_configPaths |
@@ -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_Address_Model_Order_Address_Validation |
| 17 | 17 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | public function allowAddressValidation(Mage_Customer_Model_Address_Abstract $address) |
| 72 | 72 | { |
| 73 | - /** @var Mage_Core_Controller_Request_Http */ |
|
| 73 | + /** @var Mage_Core_Controller_Request_Http */ |
|
| 74 | 74 | $request = $this->app->getRequest(); |
| 75 | 75 | /** @var bool */ |
| 76 | 76 | $needValidation = $this->validator->shouldValidateAddress($address); |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | * Return the value at field in array if it exists. Otherwise, use the |
| 71 | 71 | * default value. |
| 72 | 72 | * @param array $arr |
| 73 | - * @param string|int $field Valid array key |
|
| 73 | + * @param string $field Valid array key |
|
| 74 | 74 | * @param mixed $default |
| 75 | 75 | * @return mixed |
| 76 | 76 | */ |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | ->will($this->returnValue(array_map( |
| 85 | 85 | // Get just the "store" key from each triple in the $stores array - produces |
| 86 | 86 | // an array of Mage_Core_Model_Store objects. |
| 87 | - function ($storeAndConfig) { |
|
| 87 | + function($storeAndConfig) { |
|
| 88 | 88 | return $storeAndConfig['store']; |
| 89 | 89 | }, |
| 90 | 90 | $stores |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | // and the Eb2cCore module's config as the second for each triple in |
| 100 | 100 | // the $stores array - allows the stub to return the correct |
| 101 | 101 | // configuration for a given store. |
| 102 | - function ($storeAndConfig) { |
|
| 102 | + function($storeAndConfig) { |
|
| 103 | 103 | return array($storeAndConfig['store'], $storeAndConfig['core_config']); |
| 104 | 104 | }, |
| 105 | 105 | $stores |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | // and the EbayEnterprise_Amqp module's config as the second for each |
| 114 | 114 | // triple in the $stores array - allows the stub to return the correct |
| 115 | 115 | // configuration for a given store. |
| 116 | - function ($storeAndConfig) { |
|
| 116 | + function($storeAndConfig) { |
|
| 117 | 117 | return array($storeAndConfig['store'], $storeAndConfig['amqp_config']); |
| 118 | 118 | }, |
| 119 | 119 | $stores |
@@ -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 | { |
@@ -165,8 +165,7 @@ discard block |
||
| 165 | 165 | // (dates prior to unix epoch time 0 for example). If the two combined |
| 166 | 166 | // functions are unable to produce a valid time, fall back to the unix |
| 167 | 167 | // time `0` so something can be returned. |
| 168 | - return DateTime::createFromFormat('U', strtotime($messageDateTime)) ?: |
|
| 169 | - DateTime::createFromFormat('U', 0); |
|
| 168 | + return DateTime::createFromFormat('U', strtotime($messageDateTime)) ?: DateTime::createFromFormat('U', 0); |
|
| 170 | 169 | } |
| 171 | 170 | /** |
| 172 | 171 | * Ensure the Feed's event type matches. |
@@ -224,7 +223,7 @@ discard block |
||
| 224 | 223 | { |
| 225 | 224 | $data = array(); |
| 226 | 225 | foreach ($mhc as $key => $value) { |
| 227 | - $data[$key] = (is_array($value))? Mage::helper('eb2ccore')->invokeCallback($value) : $value; |
|
| 226 | + $data[$key] = (is_array($value)) ? Mage::helper('eb2ccore')->invokeCallback($value) : $value; |
|
| 228 | 227 | } |
| 229 | 228 | return $data; |
| 230 | 229 | } |
@@ -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 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | return array_filter( |
| 74 | 74 | array_map(array($this, '_mapNamePathToId'), $this->_convertNodesToDashNames($nodes)), |
| 75 | - function ($id) { |
|
| 75 | + function($id) { |
|
| 76 | 76 | // Strip elements where the path was not found. |
| 77 | 77 | // @see _mapNamePathToId |
| 78 | 78 | return $id !== -1; |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $ids = array_reverse($catColl->getAllIds()); |
| 116 | 116 | $names = array_reverse($catColl->getColumnValues('name')); |
| 117 | 117 | $this->_namePathToIdMap = array_combine( |
| 118 | - array_map(function ($path) use ($ids, $names) { |
|
| 118 | + array_map(function($path) use ($ids, $names) { |
|
| 119 | 119 | // replace each id in a path with the category name for that |
| 120 | 120 | // category id, and replace slashes with dashes. |
| 121 | 121 | return strtr(str_replace($ids, $names, $path), '/', '-'); |
@@ -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 | { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | Mage_Catalog_Model_Product $product, |
| 51 | 51 | EbayEnterprise_Dom_Document $doc |
| 52 | 52 | ) { |
| 53 | - $price = $this->_hasSpecialPrice($product)? $product->getSpecialPrice() : $product->getPrice(); |
|
| 53 | + $price = $this->_hasSpecialPrice($product) ? $product->getSpecialPrice() : $product->getPrice(); |
|
| 54 | 54 | return Mage::helper('ebayenterprise_catalog/pim')->createTextNode(Mage::getModel('core/store')->roundPrice($price), $doc); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | Mage_Catalog_Model_Product $product, |
| 92 | 92 | EbayEnterprise_Dom_Document $doc |
| 93 | 93 | ) { |
| 94 | - $altPrice = $this->_hasSpecialPrice($product)? |
|
| 94 | + $altPrice = $this->_hasSpecialPrice($product) ? |
|
| 95 | 95 | Mage::getModel('core/store')->roundPrice($product->getSpecialPrice()) : null; |
| 96 | 96 | |
| 97 | 97 | return Mage::helper('ebayenterprise_catalog/pim')->createTextNode($altPrice, $doc); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | ) { |
| 116 | 116 | $pim = Mage::helper('ebayenterprise_catalog/pim'); |
| 117 | 117 | return $pim->createTextNode( |
| 118 | - $this->_hasSpecialPrice($product)? $pim->createDateTime($product->getSpecialFromDate()) : null, |
|
| 118 | + $this->_hasSpecialPrice($product) ? $pim->createDateTime($product->getSpecialFromDate()) : null, |
|
| 119 | 119 | $doc |
| 120 | 120 | ); |
| 121 | 121 | } |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | ) { |
| 139 | 139 | $pim = Mage::helper('ebayenterprise_catalog/pim'); |
| 140 | 140 | return $pim->createTextNode( |
| 141 | - $this->_hasSpecialPrice($product)? $pim->createDateTime($product->getSpecialToDate()) : null, |
|
| 141 | + $this->_hasSpecialPrice($product) ? $pim->createDateTime($product->getSpecialToDate()) : null, |
|
| 142 | 142 | $doc |
| 143 | 143 | ); |
| 144 | 144 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | EbayEnterprise_Dom_Document $doc |
| 160 | 160 | ) { |
| 161 | 161 | return Mage::helper('ebayenterprise_catalog/pim')->createTextNode( |
| 162 | - Mage::helper('eb2ctax')->getVatInclusivePricingFlag()? 'true' : 'false', |
|
| 162 | + Mage::helper('eb2ctax')->getVatInclusivePricingFlag() ? 'true' : 'false', |
|
| 163 | 163 | $doc |
| 164 | 164 | ); |
| 165 | 165 | } |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | protected function _getTimeStamp($time) |
| 173 | 173 | { |
| 174 | - $time = (trim($time) === '')? time() : strtotime($time); |
|
| 174 | + $time = (trim($time) === '') ? time() : strtotime($time); |
|
| 175 | 175 | return Mage::getModel('core/date')->gmtDate('Ymd', $time); |
| 176 | 176 | } |
| 177 | 177 | |
@@ -192,8 +192,8 @@ discard block |
||
| 192 | 192 | */ |
| 193 | 193 | protected function _buildEventNumber(Mage_Catalog_Model_Product $product) |
| 194 | 194 | { |
| 195 | - return $this->_hasSpecialPrice($product)? |
|
| 195 | + return $this->_hasSpecialPrice($product) ? |
|
| 196 | 196 | $this->_getTimeStamp($product->getSpecialFromDate()) . '-' . |
| 197 | - $this->_getTimeStamp($product->getSpecialToDate()): null; |
|
| 197 | + $this->_getTimeStamp($product->getSpecialToDate()) : null; |
|
| 198 | 198 | } |
| 199 | 199 | } |
@@ -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 | { |