@@ -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 | { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | return array_merge( |
| 75 | 75 | $feedFiles, |
| 76 | 76 | array_map( |
| 77 | - function ($local) use ($coreFeed, $coreFeedHelper, $errorFile) { |
|
| 77 | + function($local) use ($coreFeed, $coreFeedHelper, $errorFile) { |
|
| 78 | 78 | return array( |
| 79 | 79 | 'local_file' => $local, |
| 80 | 80 | 'timestamp' => $coreFeedHelper->getMessageDate($local)->getTimeStamp(), |
@@ -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 | { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | { |
| 65 | 65 | $coreFeed = $this->_coreFeed; |
| 66 | 66 | return array_map( |
| 67 | - function ($file) use ($coreFeed) { |
|
| 67 | + function($file) use ($coreFeed) { |
|
| 68 | 68 | return array('local_file' => $file, 'core_feed' => $coreFeed); |
| 69 | 69 | }, |
| 70 | 70 | $this->_coreFeed->lsLocalDirectory() |
@@ -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 | { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | $helper = $this->_helper; |
| 188 | 188 | $catalogId = $this->_config->catalogId; |
| 189 | 189 | return array_map( |
| 190 | - function ($product) use ($helper, $catalogId) { |
|
| 190 | + function($product) use ($helper, $catalogId) { |
|
| 191 | 191 | return $helper->normalizeSku($product->getStyleId(), $catalogId); |
| 192 | 192 | }, |
| 193 | 193 | array_filter( |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | protected function _getAllUsedProductSkus(Varien_Data_Collection $productCollection) |
| 206 | 206 | { |
| 207 | 207 | $configSkus = array_map( |
| 208 | - function ($product) { |
|
| 208 | + function($product) { |
|
| 209 | 209 | return $product->getSku(); |
| 210 | 210 | }, |
| 211 | 211 | $productCollection->getItemsByColumnValue('type_id', Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | $unresolvedLinks, |
| 290 | 290 | $this->_linkProducts( |
| 291 | 291 | $product, |
| 292 | - array_filter($missingLinks, function ($el) use ($linkType) { |
|
| 292 | + array_filter($missingLinks, function($el) use ($linkType) { |
|
| 293 | 293 | return $linkType === $el['link_type']; |
| 294 | 294 | }), |
| 295 | 295 | $linkType |
@@ -310,12 +310,12 @@ discard block |
||
| 310 | 310 | */ |
| 311 | 311 | protected function _linkProducts(Mage_Catalog_Model_Product $product, $linkUpdates, $linkType) |
| 312 | 312 | { |
| 313 | - $opFilter = function ($operation) { |
|
| 314 | - return function ($el) use ($operation) { |
|
| 313 | + $opFilter = function($operation) { |
|
| 314 | + return function($el) use ($operation) { |
|
| 315 | 315 | return strtolower($el['operation_type']) === $operation; |
| 316 | 316 | }; |
| 317 | 317 | }; |
| 318 | - $skuMap = function ($link) { |
|
| 318 | + $skuMap = function($link) { |
|
| 319 | 319 | return $link['link_to_unique_id']; |
| 320 | 320 | }; |
| 321 | 321 | |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | $deleteSkus = array_map($skuMap, array_filter($linkUpdates, $opFilter('delete'))); |
| 328 | 328 | $linkedProducts = array_filter( |
| 329 | 329 | $linkedProducts, |
| 330 | - function ($prod) use ($deleteSkus) { |
|
| 330 | + function($prod) use ($deleteSkus) { |
|
| 331 | 331 | return !in_array($prod->getSku(), $deleteSkus); |
| 332 | 332 | } |
| 333 | 333 | ); |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | |
| 352 | 352 | // get a list of all products that should be linked |
| 353 | 353 | $linkIds = array_filter(array_unique(array_merge( |
| 354 | - array_map(function ($prod) { |
|
| 354 | + array_map(function($prod) { |
|
| 355 | 355 | return $prod->getId(); |
| 356 | 356 | }, $linkedProducts), |
| 357 | 357 | $idsToAdd |
@@ -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 | { |
@@ -295,7 +295,7 @@ |
||
| 295 | 295 | $configMap = $feedHelper->getHeaderConfig($eventType); |
| 296 | 296 | $headerTemplate = $cfg->feedHeaderTemplate; |
| 297 | 297 | $messageHeaderString = str_replace( |
| 298 | - array_map(function ($key) { |
|
| 298 | + array_map(function($key) { |
|
| 299 | 299 | return "{{$key}}"; |
| 300 | 300 | }, array_keys($configMap)), |
| 301 | 301 | array_values($configMap), |
@@ -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 | { |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | */ |
| 230 | 230 | protected function _getSkusInWebsite(array $dData, array $wData) |
| 231 | 231 | { |
| 232 | - return array_filter(array_keys($dData), function ($sku) use ($dData, $wData) { |
|
| 232 | + return array_filter(array_keys($dData), function($sku) use ($dData, $wData) { |
|
| 233 | 233 | return ( |
| 234 | 234 | $dData[$sku]['gsi_client_id'] === $wData['client_id'] && |
| 235 | 235 | $dData[$sku]['catalog_id'] === $wData['catalog_id'] |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | protected function _removeWebsiteId(array $websiteIds, $websiteId) |
| 248 | 248 | { |
| 249 | - return array_filter($websiteIds, function ($id) use ($websiteId) { |
|
| 249 | + return array_filter($websiteIds, function($id) use ($websiteId) { |
|
| 250 | 250 | return ($websiteId !== $id); |
| 251 | 251 | }); |
| 252 | 252 | } |
@@ -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,7 +109,6 @@ |
||
| 109 | 109 | $destinationParts = explode('/', $this->destinationXpath); |
| 110 | 110 | $basePath = $destinationParts[0]; |
| 111 | 111 | return isset($this->_pathBaseWeights[$basePath]) ? |
| 112 | - $this->_pathBaseWeights[$basePath] : |
|
| 113 | - count($this->_pathBaseWeights); |
|
| 112 | + $this->_pathBaseWeights[$basePath] : count($this->_pathBaseWeights); |
|
| 114 | 113 | } |
| 115 | 114 | } |
@@ -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 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | */ |
| 50 | 50 | protected function _getCollection($cutoffDate, Mage_Core_Model_Website $website) |
| 51 | 51 | { |
| 52 | - $collection = Mage::getResourceModel('catalog/product_collection'); |
|
| 52 | + $collection = Mage::getResourceModel('catalog/product_collection'); |
|
| 53 | 53 | $collection->addAttributeToSelect('entity_id'); |
| 54 | 54 | if ($cutoffDate) { |
| 55 | 55 | $collection->addFieldToFilter('updated_at', array('gteq' => $cutoffDate)); |
@@ -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 | { |