@@ -952,6 +952,10 @@ discard block |
||
952 | 952 | )); |
953 | 953 | $this->assertSame($expected->saveXML(), $doc->saveXML()); |
954 | 954 | } |
955 | + |
|
956 | + /** |
|
957 | + * @param string $xml |
|
958 | + */ |
|
955 | 959 | protected function _newDocument($xml = null) |
956 | 960 | { |
957 | 961 | $doc = Mage::helper('eb2ccore')->getNewDomDocument(); |
@@ -963,8 +967,6 @@ discard block |
||
963 | 967 | } |
964 | 968 | /** |
965 | 969 | * verify a fragment is returned containing the product links |
966 | - * @param bool $allowMessage |
|
967 | - * @param bool $isVirtual |
|
968 | 970 | * @SuppressWarnings(PHPMD.UnusedLocalVariable) |
969 | 971 | */ |
970 | 972 | public function testPassProductLinks() |
@@ -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_Catalog_Test_Helper_PimTest extends EbayEnterprise_Eb2cCore_Test_Base |
17 | 17 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | // return array containing config product's id and an empty array otherwise |
87 | 87 | $this->configTypeResource->expects($this->any()) |
88 | 88 | ->method('getParentIdsByChild') |
89 | - ->will($this->returnCallback(function ($childId) use ($configId, $simpleId) { |
|
89 | + ->will($this->returnCallback(function($childId) use ($configId, $simpleId) { |
|
90 | 90 | return $childId === $simpleId ? array($configId) : array(); |
91 | 91 | })); |
92 | 92 | |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | public function testCreateDateTime() |
737 | 737 | { |
738 | 738 | $value = '2014-03-15 12:33:48'; |
739 | - $result = '2014-03-15T12:33:48+00:00'; |
|
739 | + $result = '2014-03-15T12:33:48+00:00'; |
|
740 | 740 | |
741 | 741 | $pimHelperMock = $this->getHelperMockBuilder('ebayenterprise_catalog/pim') |
742 | 742 | ->disableOriginalConstructor() |
@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | public function testCreateInteger() |
754 | 754 | { |
755 | 755 | $value = '12'; |
756 | - $result = 12; |
|
756 | + $result = 12; |
|
757 | 757 | |
758 | 758 | $pimHelperMock = $this->getHelperMockBuilder('ebayenterprise_catalog/pim') |
759 | 759 | ->disableOriginalConstructor() |
@@ -770,7 +770,7 @@ discard block |
||
770 | 770 | public function testCreateDecimal() |
771 | 771 | { |
772 | 772 | $value = '12.677'; |
773 | - $result = 12.677; |
|
773 | + $result = 12.677; |
|
774 | 774 | |
775 | 775 | $pimHelperMock = $this->getHelperMockBuilder('ebayenterprise_catalog/pim') |
776 | 776 | ->disableOriginalConstructor() |
@@ -787,7 +787,7 @@ discard block |
||
787 | 787 | public function testCreateBool() |
788 | 788 | { |
789 | 789 | $value = '1'; |
790 | - $result = 'true'; |
|
790 | + $result = 'true'; |
|
791 | 791 | |
792 | 792 | $pimHelperMock = $this->getHelperMockBuilder('ebayenterprise_catalog/pim') |
793 | 793 | ->disableOriginalConstructor() |
@@ -1000,7 +1000,7 @@ discard block |
||
1000 | 1000 | $pimHelper->expects($this->any()) |
1001 | 1001 | ->method('passSKU') |
1002 | 1002 | ->will($this->returnCallback( |
1003 | - function ($a, $b, $product, $doc) { |
|
1003 | + function($a, $b, $product, $doc) { |
|
1004 | 1004 | return $doc->createCDataSection($product->getSku()); |
1005 | 1005 | } |
1006 | 1006 | )); |
@@ -153,8 +153,6 @@ |
||
153 | 153 | /** |
154 | 154 | * Test determining if a product is expected to have a configuratble parent |
155 | 155 | * products. |
156 | - * @param Mage_Catalog_Model_Product $product |
|
157 | - * @param bool $hasParent |
|
158 | 156 | */ |
159 | 157 | public function testGetAllParentConfigurableSkus() |
160 | 158 | { |
@@ -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_Catalog_Test_Model_Feed_CleanerTest extends EbayEnterprise_Eb2cCore_Test_Base |
17 | 17 | { |
@@ -518,10 +518,10 @@ |
||
518 | 518 | // Product links to try to make |
519 | 519 | $linkUpdates = array( |
520 | 520 | array( |
521 | - 'link_type' => $linkType, 'operation_type' => 'Add','link_to_unique_id' => '45-missing-link', |
|
521 | + 'link_type' => $linkType, 'operation_type' => 'Add', 'link_to_unique_id' => '45-missing-link', |
|
522 | 522 | ), |
523 | 523 | array( |
524 | - 'link_type' => $linkType, 'operation_type' => 'Add','link_to_unique_id' => '45-add-link', |
|
524 | + 'link_type' => $linkType, 'operation_type' => 'Add', 'link_to_unique_id' => '45-add-link', |
|
525 | 525 | ), |
526 | 526 | array( |
527 | 527 | 'link_type' => $linkType, 'operation_type' => 'delete', 'link_to_unique_id' => '45-link-to-remove', |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | /** |
19 | 19 | * Get a mock Varien_Io_File object to sub out for a real one. |
20 | - * @return Mock_Varien_File_Io |
|
20 | + * @return PHPUnit_Framework_MockObject_MockBuilder |
|
21 | 21 | */ |
22 | 22 | protected function _getMockFsTool() |
23 | 23 | { |
@@ -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_Catalog_Test_Model_Feed_CoreTest extends EbayEnterprise_Eb2cCore_Test_Base |
17 | 17 | { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * Return the value at field in array if it exists. Otherwise, use the |
164 | 164 | * default value. |
165 | 165 | * @param array $arr |
166 | - * @param string|int $field Valid array key |
|
166 | + * @param string $field Valid array key |
|
167 | 167 | * @param mixed $default |
168 | 168 | * @return mixed |
169 | 169 | */ |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | } |
492 | 492 | /** |
493 | 493 | * Make the API request and handle any exceptions. |
494 | - * @param ApiIBidirectionalApi $api |
|
494 | + * @param IBidirectionalApi $api |
|
495 | 495 | * @return self |
496 | 496 | */ |
497 | 497 | protected function _sendAuthRequest(Api\IBidirectionalApi $api) |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | /** |
535 | 535 | * Update payment objects with details of the auth request and response. Validate |
536 | 536 | * that a successful response was received. |
537 | - * @param ApiIBidirectionalApi $api |
|
537 | + * @param IBidirectionalApi $api |
|
538 | 538 | * @param Varien_Object $payment |
539 | 539 | * @return self |
540 | 540 | */ |
@@ -13,14 +13,14 @@ |
||
13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
14 | 14 | */ |
15 | 15 | |
16 | +use Psr\Log\LoggerInterface; |
|
17 | +use Psr\Log\NullLogger; |
|
16 | 18 | use eBayEnterprise\RetailOrderManagement\Api; |
17 | 19 | use eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError; |
18 | 20 | use eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction; |
19 | 21 | use eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation; |
20 | 22 | use eBayEnterprise\RetailOrderManagement\Payload; |
21 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload; |
22 | -use Psr\Log\LoggerInterface; |
|
23 | -use Psr\Log\NullLogger; |
|
24 | 24 | |
25 | 25 | class EbayEnterprise_CreditCard_Model_Method_Ccpayment extends Mage_Payment_Model_Method_Cc |
26 | 26 | { |
@@ -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 | use eBayEnterprise\RetailOrderManagement\Api; |
17 | 17 | use eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError; |
@@ -39,51 +39,51 @@ discard block |
||
39 | 39 | * Code unique to this payment method. |
40 | 40 | * @var string |
41 | 41 | */ |
42 | - protected $_code = 'ebayenterprise_creditcard'; |
|
42 | + protected $_code = 'ebayenterprise_creditcard'; |
|
43 | 43 | /** |
44 | 44 | * Is this payment method a gateway (online auth/charge) ? |
45 | 45 | */ |
46 | - protected $_isGateway = false; |
|
46 | + protected $_isGateway = false; |
|
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Can authorize online? |
50 | 50 | */ |
51 | - protected $_canAuthorize = true; |
|
51 | + protected $_canAuthorize = true; |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * Can capture funds online? |
55 | 55 | */ |
56 | - protected $_canCapture = false; |
|
56 | + protected $_canCapture = false; |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Can capture partial amounts online? |
60 | 60 | */ |
61 | - protected $_canCapturePartial = false; |
|
61 | + protected $_canCapturePartial = false; |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Can refund online? |
65 | 65 | */ |
66 | - protected $_canRefund = false; |
|
66 | + protected $_canRefund = false; |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * Can void transactions online? |
70 | 70 | */ |
71 | - protected $_canVoid = false; |
|
71 | + protected $_canVoid = false; |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * Can use this payment method in administration panel? |
75 | 75 | */ |
76 | - protected $_canUseInternal = true; |
|
76 | + protected $_canUseInternal = true; |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Can show this payment method as an option on checkout payment page? |
80 | 80 | */ |
81 | - protected $_canUseCheckout = true; |
|
81 | + protected $_canUseCheckout = true; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Is this payment method suitable for multi-shipping checkout? |
85 | 85 | */ |
86 | - protected $_canUseForMultishipping = true; |
|
86 | + protected $_canUseForMultishipping = true; |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * Can save credit card information for future processing? |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | $addresses = $quote->getAllShippingAddresses(); |
574 | 574 | $selected = array_reduce( |
575 | 575 | $addresses, |
576 | - function ( |
|
576 | + function( |
|
577 | 577 | Mage_Sales_Model_Quote_Address $current = null, |
578 | 578 | Mage_Sales_Model_Quote_Address $address |
579 | 579 | ) { |
@@ -169,7 +169,7 @@ |
||
169 | 169 | * @param bool $isAcceptable |
170 | 170 | * @param bool $isAvsSuccess |
171 | 171 | * @param bool $isCvvSuccess |
172 | - * @return Payload\Payment\ICreditCardAuthReply |
|
172 | + * @return PHPUnit_Framework_MockObject_MockObject |
|
173 | 173 | */ |
174 | 174 | protected function _buildPayloadToValidate($isSuccess = true, $isAcceptable = true, $isAvsSuccess = true, $isCvvSuccess = true) |
175 | 175 | { |
@@ -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 | use eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError; |
17 | 17 | use eBayEnterprise\RetailOrderManagement\Payload; |
@@ -127,7 +127,7 @@ |
||
127 | 127 | /** |
128 | 128 | * stub out the setter methods for the payload excluding those |
129 | 129 | * specified in the array |
130 | - * @param array $exclude |
|
130 | + * @param string[] $exclude |
|
131 | 131 | */ |
132 | 132 | protected function _stubPayload($exclude = []) |
133 | 133 | { |
@@ -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 | /** |
17 | 17 | * Test Order Create Payment Payload Injection |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Type checks for __construct's $initParams |
52 | 52 | * @param EbayEnterprise_Eb2cCore_Helper_Validator $validatorHelper |
53 | - * @return mixed[] |
|
53 | + * @return EbayEnterprise_Eb2cCore_Helper_Validator[] |
|
54 | 54 | */ |
55 | 55 | protected function _checkTypes(EbayEnterprise_Eb2cCore_Helper_Validator $validatorHelper) |
56 | 56 | { |
@@ -59,9 +59,9 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Get the value form the array if set, else the default value. |
61 | 61 | * @param mixed[] $arr |
62 | - * @param string|int $field |
|
62 | + * @param string $field |
|
63 | 63 | * @param mixed $default |
64 | - * @return mixed |
|
64 | + * @return EbayEnterprise_Eb2cCore_Helper_Validator |
|
65 | 65 | */ |
66 | 66 | protected function _nullCoalesce(array $arr, $field, $default) |
67 | 67 | { |
@@ -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_Eb2cCore_Exchange_System_Config_ValidateController extends Mage_Adminhtml_Controller_Action |
17 | 17 | { |
@@ -357,7 +357,7 @@ |
||
357 | 357 | * getting how long ago a file has been modified or created in minutes |
358 | 358 | * |
359 | 359 | * @param string $sourceFile |
360 | - * @return int time ago in minutes |
|
360 | + * @return double time ago in minutes |
|
361 | 361 | */ |
362 | 362 | public function getFileTimeElapse($sourceFile) |
363 | 363 | { |
@@ -13,8 +13,8 @@ |
||
13 | 13 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
14 | 14 | */ |
15 | 15 | |
16 | -use eBayEnterprise\RetailOrderManagement\Api; |
|
17 | 16 | use Psr\Log\LoggerInterface; |
17 | +use eBayEnterprise\RetailOrderManagement\Api; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Class EbayEnterprise_Eb2cCore_Helper_Data |
@@ -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 | use eBayEnterprise\RetailOrderManagement\Api; |
17 | 17 | use Psr\Log\LoggerInterface; |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | */ |
211 | 211 | public function extractNodeVal(DOMNodeList $nodeList) |
212 | 212 | { |
213 | - return ($nodeList->length)? $nodeList->item(0)->nodeValue : null; |
|
213 | + return ($nodeList->length) ? $nodeList->item(0)->nodeValue : null; |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | /** |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | */ |
223 | 223 | public function extractNodeAttributeVal(DOMNodeList $nodeList, $attributeName) |
224 | 224 | { |
225 | - return ($nodeList->length)? $nodeList->item(0)->getAttribute($attributeName) : null; |
|
225 | + return ($nodeList->length) ? $nodeList->item(0)->getAttribute($attributeName) : null; |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | /** |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | { |
483 | 483 | $cfg = Mage::helper('eb2ccore')->getConfigModel(); |
484 | 484 | $ids = explode(',', $appliedRuleIds); |
485 | - $ruleId = !empty($ids)?$ids[0]: 0; |
|
485 | + $ruleId = !empty($ids) ? $ids[0] : 0; |
|
486 | 486 | return sprintf('%.12s', $cfg->storeId . '-' . $ruleId); |
487 | 487 | } |
488 | 488 | /** |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | if (empty($meta)) { |
591 | 591 | return null; |
592 | 592 | } |
593 | - $parameters = isset($meta['parameters'])? $meta['parameters'] : []; |
|
593 | + $parameters = isset($meta['parameters']) ? $meta['parameters'] : []; |
|
594 | 594 | switch ($meta['type']) { |
595 | 595 | case 'model': |
596 | 596 | return call_user_func_array([Mage::getModel($meta['class']), $meta['method']], $parameters); |
@@ -46,7 +46,8 @@ |
||
46 | 46 | * @param array |
47 | 47 | * @param string|int |
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_Eb2cCore_Helper_Languages extends Mage_Core_Helper_Abstract |
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. |