@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * there's been a change so we return true on 'isValueChanged'. |
| 30 | 30 | */ |
| 31 | 31 | $backendMock = $this->getModelMockBuilder('eb2ccore/system_config_backend_language_code') |
| 32 | - ->setMethods(array( 'isValueChanged',)) |
|
| 32 | + ->setMethods(array('isValueChanged',)) |
|
| 33 | 33 | ->setConstructorArgs([['language_helper' => $mockLangHelper]]) |
| 34 | 34 | ->getMock(); |
| 35 | 35 | $backendMock->expects($this->once()) |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | ->will($this->returnArgument(0)); |
| 55 | 55 | |
| 56 | 56 | $backendMock = $this->getModelMockBuilder('eb2ccore/system_config_backend_language_code') |
| 57 | - ->setMethods(array( 'isValueChanged',)) |
|
| 57 | + ->setMethods(array('isValueChanged',)) |
|
| 58 | 58 | ->setConstructorArgs([['language_helper' => $mockLangHelper, 'core_helper' => $mockCoreHelper]]) |
| 59 | 59 | ->getMock(); |
| 60 | 60 | $backendMock->expects($this->once()) |
@@ -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 | { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function _afterLoad() |
| 28 | 28 | { |
| 29 | - $filePattern = Mage::getBaseDir() . '/js/ebayenterprise_eb2cfraud/*.js'; |
|
| 29 | + $filePattern = Mage::getBaseDir() . '/js/ebayenterprise_eb2cfraud/*.js'; |
|
| 30 | 30 | $jsFiles = glob($filePattern); |
| 31 | 31 | if (!$jsFiles) { |
| 32 | 32 | $publicDisplay = 'Not installed; fraud information will not be collected'; |
@@ -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,23 +22,23 @@ |
||
| 22 | 22 | $installer->startSetup(); |
| 23 | 23 | $entities = array('order', 'quote'); |
| 24 | 24 | |
| 25 | -$typeTextOptions = array ( |
|
| 25 | +$typeTextOptions = array( |
|
| 26 | 26 | 'type' => Varien_Db_Ddl_Table::TYPE_TEXT, |
| 27 | 27 | 'visible' => true, |
| 28 | 28 | 'required' => false, |
| 29 | 29 | ); |
| 30 | 30 | |
| 31 | 31 | $fraudAttributes = array( |
| 32 | - array( 'name' => 'char_set', 'options' => $typeTextOptions), |
|
| 33 | - array( 'name' => 'content_types', 'options' => $typeTextOptions), |
|
| 34 | - array( 'name' => 'encoding', 'options' => $typeTextOptions), |
|
| 35 | - array( 'name' => 'host_name', 'options' => $typeTextOptions), |
|
| 36 | - array( 'name' => 'ip_address', 'options' => $typeTextOptions), |
|
| 37 | - array( 'name' => 'javascript_data', 'options' => $typeTextOptions), |
|
| 38 | - array( 'name' => 'language', 'options' => $typeTextOptions), |
|
| 39 | - array( 'name' => 'referrer', 'options' => $typeTextOptions), |
|
| 40 | - array( 'name' => 'session_id', 'options' => $typeTextOptions), |
|
| 41 | - array( 'name' => 'user_agent', 'options' => $typeTextOptions), |
|
| 32 | + array('name' => 'char_set', 'options' => $typeTextOptions), |
|
| 33 | + array('name' => 'content_types', 'options' => $typeTextOptions), |
|
| 34 | + array('name' => 'encoding', 'options' => $typeTextOptions), |
|
| 35 | + array('name' => 'host_name', 'options' => $typeTextOptions), |
|
| 36 | + array('name' => 'ip_address', 'options' => $typeTextOptions), |
|
| 37 | + array('name' => 'javascript_data', 'options' => $typeTextOptions), |
|
| 38 | + array('name' => 'language', 'options' => $typeTextOptions), |
|
| 39 | + array('name' => 'referrer', 'options' => $typeTextOptions), |
|
| 40 | + array('name' => 'session_id', 'options' => $typeTextOptions), |
|
| 41 | + array('name' => 'user_agent', 'options' => $typeTextOptions), |
|
| 42 | 42 | ); |
| 43 | 43 | |
| 44 | 44 | $pfx = 'eb2c_fraud_'; |
@@ -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 @@ |
||
| 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-2015 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-2015 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 | use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
| 17 | 17 | |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | $cardNumbers = ['1234', '2345', '3456', '4567']; |
| 194 | 194 | |
| 195 | 195 | $giftCards = array_map( |
| 196 | - function ($cardNumber) { |
|
| 196 | + function($cardNumber) { |
|
| 197 | 197 | return Mage::getModel('ebayenterprise_giftcard/giftcard')->setCardNumber($cardNumber)->setPin('1234'); |
| 198 | 198 | }, |
| 199 | 199 | $cardNumbers |
@@ -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_GiftCard_Test_Model_GiftcardTest extends EbayEnterprise_Eb2cCore_Test_Base |
| 17 | 17 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | ['\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation', '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation'], |
| 76 | 76 | ['\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction', '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction'], |
| 77 | 77 | ['\Exception', '\Exception'], |
| 78 | - ]; |
|
| 78 | + ]; |
|
| 79 | 79 | } |
| 80 | 80 | /** |
| 81 | 81 | * Any exceptions thrown by the SDK should be caught and converted to gift card |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $splStorage = new SplObjectStorage; |
| 60 | 60 | $altStorage = new SplObjectStorage; |
| 61 | 61 | return [ |
| 62 | - [$splStorage, $splStorage, null,], |
|
| 62 | + [$splStorage, $splStorage, null, ], |
|
| 63 | 63 | [$splStorage, $altStorage, $splStorage], |
| 64 | 64 | ]; |
| 65 | 65 | } |
@@ -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 | { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | return array_filter( |
| 28 | 28 | $items, |
| 29 | - function ($item) { |
|
| 29 | + function($item) { |
|
| 30 | 30 | return !$this->isExcludedParent($item) && $this->isStockManaged($item); |
| 31 | 31 | } |
| 32 | 32 | ); |
@@ -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 | { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | |
| 89 | 89 | protected function getAddressItemFactoryCallback(Mage_Customer_Model_Address_Abstract $address) |
| 90 | 90 | { |
| 91 | - return function (Mage_Sales_Model_Quote_Item_Abstract $item) use ($address) { |
|
| 91 | + return function(Mage_Sales_Model_Quote_Item_Abstract $item) use ($address) { |
|
| 92 | 92 | return [$address, $item]; |
| 93 | 93 | }; |
| 94 | 94 | } |
@@ -83,6 +83,7 @@ |
||
| 83 | 83 | * @param string |
| 84 | 84 | * @param array |
| 85 | 85 | * @param mixed |
| 86 | + * @param string $key |
|
| 86 | 87 | * @return mixed |
| 87 | 88 | */ |
| 88 | 89 | protected function _nullCoalesce(array $arr, $key, $default) |