@@ -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 | { |
@@ -77,7 +77,7 @@ |
||
77 | 77 | $this->getPimAttributes(), |
78 | 78 | array_filter( |
79 | 79 | array_map( |
80 | - function ($attr) use ($product, $attributeFactory, $doc, $config) { |
|
80 | + function($attr) use ($product, $attributeFactory, $doc, $config) { |
|
81 | 81 | return $attributeFactory->getPimAttribute($attr, $product, $doc, $config); |
82 | 82 | }, |
83 | 83 | $attributes |
@@ -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 | { |
@@ -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 | { |