@@ -19,7 +19,7 @@ |
||
19 | 19 | $configuration = new Configuration(); |
20 | 20 | $config = $this->processConfiguration($configuration, $configs); |
21 | 21 | |
22 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
22 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
23 | 23 | |
24 | 24 | $loader->load('services.yml'); |
25 | 25 | $loader->load('form_types.yml'); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $this->translator->expects($this->any()) |
116 | 116 | ->method('trans') |
117 | 117 | ->willReturnCallback( |
118 | - function ($messageId) { |
|
118 | + function($messageId) { |
|
119 | 119 | return $messageId . ' TRANS'; |
120 | 120 | } |
121 | 121 | ); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $this->translator->expects($this->any()) |
170 | 170 | ->method('trans') |
171 | 171 | ->willReturnCallback( |
172 | - function ($messageId) { |
|
172 | + function($messageId) { |
|
173 | 173 | return $messageId . ' TRANS'; |
174 | 174 | } |
175 | 175 | ); |
@@ -73,6 +73,6 @@ |
||
73 | 73 | ->setSubtotal($price->getValue() * $lineItem->getQuantity()) |
74 | 74 | ] |
75 | 75 | ] |
76 | - ]; |
|
76 | + ]; |
|
77 | 77 | } |
78 | 78 | } |
@@ -105,6 +105,6 @@ |
||
105 | 105 | ->setSourceLineItem($lineItem) |
106 | 106 | ->setSubtotal(0)] |
107 | 107 | ], |
108 | - ]; |
|
108 | + ]; |
|
109 | 109 | } |
110 | 110 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $this->lineItemSubtotalProvider->expects($this->once()) |
128 | 128 | ->method('getRowTotal') |
129 | 129 | ->with($orderLineItem) |
130 | - ->willReturnCallback(function (OrderLineItem $orderLineItem) { |
|
130 | + ->willReturnCallback(function(OrderLineItem $orderLineItem) { |
|
131 | 131 | return $orderLineItem->getValue() * $orderLineItem->getQuantity(); |
132 | 132 | }); |
133 | 133 | |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $this->lineItemSubtotalProvider->expects($this->once()) |
189 | 189 | ->method('getRowTotal') |
190 | 190 | ->with($orderLineItem) |
191 | - ->willReturnCallback(function (OrderLineItem $orderLineItem) { |
|
191 | + ->willReturnCallback(function(OrderLineItem $orderLineItem) { |
|
192 | 192 | return $orderLineItem->getValue() * $orderLineItem->getQuantity(); |
193 | 193 | }); |
194 | 194 |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $qb = $this->getEntityManager()->createQueryBuilder(); |
164 | 164 | |
165 | 165 | $configFallback = CustomerGroupCategoryVisibilityResolved::VISIBILITY_FALLBACK_TO_CONFIG; |
166 | - $qb->select('COALESCE(agcvr.visibility, cvr.visibility, '. $qb->expr()->literal($configFallback).')') |
|
166 | + $qb->select('COALESCE(agcvr.visibility, cvr.visibility, ' . $qb->expr()->literal($configFallback) . ')') |
|
167 | 167 | ->from('OroCatalogBundle:Category', 'category') |
168 | 168 | ->leftJoin( |
169 | 169 | 'OroVisibilityBundle:VisibilityResolved\CategoryVisibilityResolved', |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | $qb->select( |
208 | 208 | 'IDENTITY(scope.customerGroup) as customerGroupId', |
209 | - 'COALESCE(agcvr.visibility, cvr.visibility, '. $qb->expr()->literal($configFallback).') as visibility', |
|
209 | + 'COALESCE(agcvr.visibility, cvr.visibility, ' . $qb->expr()->literal($configFallback) . ') as visibility', |
|
210 | 210 | 'agcvr.visibility as a', |
211 | 211 | 'cvr.visibility as b' |
212 | 212 | ) |
@@ -47,7 +47,7 @@ |
||
47 | 47 | public function testOnWebsiteSearchIndex() |
48 | 48 | { |
49 | 49 | $websiteId = 1; |
50 | - $context = [AbstractIndexer::CONTEXT_CURRENT_WEBSITE_ID_KEY => $websiteId]; |
|
50 | + $context = [AbstractIndexer::CONTEXT_CURRENT_WEBSITE_ID_KEY => $websiteId]; |
|
51 | 51 | $event = new IndexEntityEvent(\stdClass::class, [], $context); |
52 | 52 | |
53 | 53 | $this->websiteContextManager |
@@ -47,14 +47,14 @@ |
||
47 | 47 | // Parsing transit response data is important, so we should fire an exception if some elements are not found. |
48 | 48 | try { |
49 | 49 | // Define a shortcut to make lines shorter. |
50 | - $timeInTransitResponse =& $data['TimeInTransitResponse']; |
|
50 | + $timeInTransitResponse = & $data['TimeInTransitResponse']; |
|
51 | 51 | |
52 | 52 | // A "1" normally indicates a successful response, whereas a "0" indicates a Transient or Hard error. |
53 | - $responseStatusCode = (string) $timeInTransitResponse['Response']['ResponseStatus']['Code']; |
|
53 | + $responseStatusCode = (string)$timeInTransitResponse['Response']['ResponseStatus']['Code']; |
|
54 | 54 | $responseStatusDescription = $timeInTransitResponse['Response']['ResponseStatus']['Description']; |
55 | 55 | |
56 | 56 | foreach ($timeInTransitResponse['TransitResponse']['ServiceSummary'] as $serviceTimeInTransit) { |
57 | - $estimatedArrival =& $serviceTimeInTransit['EstimatedArrival']; |
|
57 | + $estimatedArrival = & $serviceTimeInTransit['EstimatedArrival']; |
|
58 | 58 | |
59 | 59 | $arrivalDate = $this |
60 | 60 | ->parseArrivalDateTime($estimatedArrival['Arrival']['Date'], $estimatedArrival['Arrival']['Time']); |
@@ -135,6 +135,6 @@ |
||
135 | 135 | */ |
136 | 136 | protected function setNamespace($id) |
137 | 137 | { |
138 | - $this->cache->setNamespace(self::NAME_SPACE.'_'.$id); |
|
138 | + $this->cache->setNamespace(self::NAME_SPACE . '_' . $id); |
|
139 | 139 | } |
140 | 140 | } |