@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | $magentoAddressUSAZ = $this->createMagentoAddress($this->regions['US-AZ'], $this->countries['US']); |
43 | 43 | $magentoAddressUSLA = $this->createMagentoAddress($this->regions['US-LA'], $this->countries['US']); |
44 | - $account = $this->createAccount(); |
|
44 | + $account = $this->createAccount(); |
|
45 | 45 | |
46 | 46 | $customer = $this->createCustomer(1, $account, $magentoAddressUSAZ, self::NONE_SHARED_EMAIL); |
47 | 47 | $customer2 = $this->createCustomer(2, $account, $magentoAddressUSLA, self::TEST_SHARED_EMAIL); |
@@ -165,12 +165,12 @@ |
||
165 | 165 | $origin |
166 | 166 | ) { |
167 | 167 | $result = $adminUrl . |
168 | - '/oro_gateway/do?'.$origin.'=' . |
|
169 | - $id . |
|
170 | - '&route=' . $magentoRoute . |
|
171 | - '&workflow=' . $flowName . |
|
172 | - '&success_url=' . urlencode($successUrl) . |
|
173 | - '&error_url=' . urlencode($errorUrl); |
|
168 | + '/oro_gateway/do?'.$origin.'=' . |
|
169 | + $id . |
|
170 | + '&route=' . $magentoRoute . |
|
171 | + '&workflow=' . $flowName . |
|
172 | + '&success_url=' . urlencode($successUrl) . |
|
173 | + '&error_url=' . urlencode($errorUrl); |
|
174 | 174 | |
175 | 175 | $this->transport->expects($this->atLeastOnce())->method('getAdminUrl')->will($this->returnValue($adminUrl)); |
176 | 176 |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | $origin |
166 | 166 | ) { |
167 | 167 | $result = $adminUrl . |
168 | - '/oro_gateway/do?'.$origin.'=' . |
|
168 | + '/oro_gateway/do?' . $origin . '=' . |
|
169 | 169 | $id . |
170 | 170 | '&route=' . $magentoRoute . |
171 | 171 | '&workflow=' . $flowName . |
@@ -214,10 +214,10 @@ discard block |
||
214 | 214 | $exception = new ExtensionRequiredException; |
215 | 215 | |
216 | 216 | return [ |
217 | - [144, $successRoute, $errorRoute, $adminUrl, $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin], |
|
217 | + [144, $successRoute, $errorRoute, $adminUrl, $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin], |
|
218 | 218 | [356, $successRoute, $errorRoute, $exception, $successUrl, $errorUrl, $flowName, $checkoutRoute, $origin], |
219 | - [543, $exception, $errorRoute, $adminUrl, $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin], |
|
220 | - [632, $successRoute, $exception, $adminUrl, $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin], |
|
219 | + [543, $exception, $errorRoute, $adminUrl, $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin], |
|
220 | + [632, $successRoute, $exception, $adminUrl, $successUrl, $errorUrl, $flowName, $newOrderRoute, $origin], |
|
221 | 221 | ]; |
222 | 222 | } |
223 | 223 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $this->assertFalse($stateManager->isInState($object->stateField, self::STATE_REQUIRE_ADDRESS)); |
35 | 35 | $this->assertFalse($stateManager->isInState($object->stateField, self::STATE_REQUIRE_INFO)); |
36 | 36 | |
37 | - $stateManager->addState($object, 'stateField', self::STATE_REQUIRE_ADDRESS | self::STATE_REQUIRE_INFO); |
|
37 | + $stateManager->addState($object, 'stateField', self::STATE_REQUIRE_ADDRESS|self::STATE_REQUIRE_INFO); |
|
38 | 38 | $this->assertTrue($stateManager->isInState($object->stateField, self::STATE_REQUIRE_ADDRESS)); |
39 | 39 | $this->assertTrue($stateManager->isInState($object->stateField, self::STATE_REQUIRE_INFO)); |
40 | 40 |
@@ -34,18 +34,18 @@ |
||
34 | 34 | $adminUrl = 'http://localhost/admin'; |
35 | 35 | |
36 | 36 | return [ |
37 | - 'wsdl_url' => ['wsdlUrl', $wsdlUrl, $wsdlUrl], |
|
38 | - 'api_user' => ['apiUser', $apiUser, $apiUser], |
|
39 | - 'api_key' => ['apiKey', $apiKey, $apiKey], |
|
40 | - 'website_id' => ['websiteId', $websiteId, $websiteId], |
|
41 | - 'websites' => ['websites', $websites, $websites], |
|
42 | - 'syncStartDate' => ['syncStartDate', $syncStartDate, $syncStartDate], |
|
43 | - 'syncRange' => ['syncRange', $syncRange, $syncRange], |
|
37 | + 'wsdl_url' => ['wsdlUrl', $wsdlUrl, $wsdlUrl], |
|
38 | + 'api_user' => ['apiUser', $apiUser, $apiUser], |
|
39 | + 'api_key' => ['apiKey', $apiKey, $apiKey], |
|
40 | + 'website_id' => ['websiteId', $websiteId, $websiteId], |
|
41 | + 'websites' => ['websites', $websites, $websites], |
|
42 | + 'syncStartDate' => ['syncStartDate', $syncStartDate, $syncStartDate], |
|
43 | + 'syncRange' => ['syncRange', $syncRange, $syncRange], |
|
44 | 44 | 'is_extension_installed' => ['isExtensionInstalled', $isExtensionInstalled, $isExtensionInstalled], |
45 | - 'guest_customer_sync' => ['guestCustomerSync', $guestCustomerSync, $guestCustomerSync], |
|
46 | - 'admin_url' => ['adminUrl', $adminUrl, $adminUrl], |
|
47 | - 'extension_version' => ['extensionVersion', '1.0.0', '1.0.0'], |
|
48 | - 'magento_version' => ['magentoVersion', '1.0.0', '1.0.0'], |
|
45 | + 'guest_customer_sync' => ['guestCustomerSync', $guestCustomerSync, $guestCustomerSync], |
|
46 | + 'admin_url' => ['adminUrl', $adminUrl, $adminUrl], |
|
47 | + 'extension_version' => ['extensionVersion', '1.0.0', '1.0.0'], |
|
48 | + 'magento_version' => ['magentoVersion', '1.0.0', '1.0.0'], |
|
49 | 49 | 'newsletter_subscriber_synced_to_id' => ['newsletter_subscriber_synced_to_id', 10, 10] |
50 | 50 | ]; |
51 | 51 | } |
@@ -78,7 +78,7 @@ |
||
78 | 78 | ->will($this->returnValue($this->queryBuilder)); |
79 | 79 | |
80 | 80 | $id = rand(); |
81 | - $name = 'name_'.rand(); |
|
81 | + $name = 'name_' . rand(); |
|
82 | 82 | $this->parameters->expects($this->any()) |
83 | 83 | ->method('get') |
84 | 84 | ->will( |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | 2 => 'test3', |
130 | 130 | 3 => 'test4', |
131 | 131 | 4 => 'country.name as countryName', |
132 | - 5 => 'CONCAT(CASE WHEN address.regionText IS NOT NULL '. |
|
132 | + 5 => 'CONCAT(CASE WHEN address.regionText IS NOT NULL ' . |
|
133 | 133 | 'THEN address.regionText ELSE region.name END, \'\') as regionName', |
134 | 134 | 6 => 'test5' |
135 | 135 | ], |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | 'join' => 'o.addresses', |
140 | 140 | 'alias' => 'address', |
141 | 141 | 'conditionType' => 'WITH', |
142 | - 'condition' => 'address.id IN (SELECT oa.id '. |
|
143 | - 'FROM OroMagentoBundle:OrderAddress oa LEFT JOIN '. |
|
142 | + 'condition' => 'address.id IN (SELECT oa.id ' . |
|
143 | + 'FROM OroMagentoBundle:OrderAddress oa LEFT JOIN ' . |
|
144 | 144 | 'oa.types type WHERE type.name = \'billing\' OR type.name IS NULL)' |
145 | 145 | ], |
146 | 146 | [ |
@@ -28,14 +28,14 @@ |
||
28 | 28 | $this->transport = $this->createMock(MagentoTransportInterface::class); |
29 | 29 | |
30 | 30 | $this->transport |
31 | - ->expects($this->any()) |
|
32 | - ->method('isSupportedExtensionVersion') |
|
33 | - ->willReturn(false); |
|
31 | + ->expects($this->any()) |
|
32 | + ->method('isSupportedExtensionVersion') |
|
33 | + ->willReturn(false); |
|
34 | 34 | |
35 | 35 | $this->typesRegistry |
36 | - ->expects($this->any()) |
|
37 | - ->method('getTransportTypeBySettingEntity') |
|
38 | - ->willReturn($this->transport); |
|
36 | + ->expects($this->any()) |
|
37 | + ->method('getTransportTypeBySettingEntity') |
|
38 | + ->willReturn($this->transport); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | $this->datagrid->expects($this->any()) |
82 | 82 | ->method('getParameters') |
83 | - ->will($this->returnValue($this->createParameterBag(['channelIds' => 100 ]))); |
|
83 | + ->will($this->returnValue($this->createParameterBag(['channelIds' => 100]))); |
|
84 | 84 | |
85 | 85 | $transport = new MagentoSoapTransport(); |
86 | 86 | $integration = new Integration(); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $this->datagrid->expects($this->any()) |
112 | 112 | ->method('getParameters') |
113 | - ->will($this->returnValue($this->createParameterBag(['channelIds' => 100 ]))); |
|
113 | + ->will($this->returnValue($this->createParameterBag(['channelIds' => 100]))); |
|
114 | 114 | |
115 | 115 | $this->qb->expects($this->never()) |
116 | 116 | ->method('andWhere') |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | ->method('get') |
158 | 158 | ->will( |
159 | 159 | $this->returnCallback( |
160 | - function ($key) use ($data) { |
|
160 | + function($key) use ($data) { |
|
161 | 161 | return $data[$key]; |
162 | 162 | } |
163 | 163 | ) |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | $this->datagrid->expects($this->any()) |
72 | 72 | ->method('getParameters') |
73 | - ->will($this->returnValue($this->createParameterBag(['channelIds' => 100 ]))); |
|
73 | + ->will($this->returnValue($this->createParameterBag(['channelIds' => 100]))); |
|
74 | 74 | |
75 | 75 | $this->qb->expects($this->never()) |
76 | 76 | ->method('andWhere') |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | ->method('get') |
118 | 118 | ->will( |
119 | 119 | $this->returnCallback( |
120 | - function ($key) use ($data) { |
|
120 | + function($key) use ($data) { |
|
121 | 121 | return $data[$key]; |
122 | 122 | } |
123 | 123 | ) |