@@ -59,7 +59,7 @@ |
||
59 | 59 | |
60 | 60 | $this->cacheProvider->expects(static::once()) |
61 | 61 | ->method('setNamespace') |
62 | - ->with('oro_ups_shipping_price_'.self::SETTINGS_ID); |
|
62 | + ->with('oro_ups_shipping_price_' . self::SETTINGS_ID); |
|
63 | 63 | |
64 | 64 | $this->cacheKey = $this->getCacheKeyMock($this->settings, self::CACHE_KEY); |
65 | 65 |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $em = $this->doctrineHelper->getEntityManager(Product::class); |
152 | 152 | $qb = $em->createQueryBuilder(); |
153 | 153 | |
154 | - $qb->select('IDENTITY(productContentVariant.product_page_product), '. (int)$version) |
|
154 | + $qb->select('IDENTITY(productContentVariant.product_page_product), ' . (int)$version) |
|
155 | 155 | ->from(ContentVariant::class, 'productContentVariant') |
156 | 156 | ->innerJoin( |
157 | 157 | ContentNode::class, |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $em = $this->doctrineHelper->getEntityManager(Product::class); |
232 | 232 | $qb = $em->createQueryBuilder(); |
233 | 233 | |
234 | - $qb->select('segmentSnapshot.integerEntityId, '. (int)$version) |
|
234 | + $qb->select('segmentSnapshot.integerEntityId, ' . (int)$version) |
|
235 | 235 | ->from(ContentVariant::class, 'productCollectionContentVariant') |
236 | 236 | ->innerJoin( |
237 | 237 | SegmentSnapshot::class, |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | [ |
105 | 105 | 'quantity' => 10, |
106 | 106 | 'productUnit' => 'kg', |
107 | - 'price' => ['value' => 20, 'currency' => 'USD',], |
|
107 | + 'price' => ['value' => 20, 'currency' => 'USD', ], |
|
108 | 108 | ], |
109 | 109 | ], |
110 | 110 | ], |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | $currencySelectionType = new CurrencySelectionTypeStub(); |
436 | 436 | $requestProductItemType = $this->prepareRequestProductItemType(); |
437 | 437 | $productUnitSelectionType = $this->prepareProductUnitSelectionType(); |
438 | - $customerMultiSelectType = $this->prepareCustomerUserMultiSelectType(); |
|
438 | + $customerMultiSelectType = $this->prepareCustomerUserMultiSelectType(); |
|
439 | 439 | |
440 | 440 | $customerSelectType = new StubEntityType( |
441 | 441 | [ |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $resolver = $this->createMock('Symfony\Component\OptionsResolver\OptionsResolver'); |
48 | 48 | $resolver->expects($this->once()) |
49 | 49 | ->method('setDefaults') |
50 | - ->with($this->callback(function (array $options) { |
|
50 | + ->with($this->callback(function(array $options) { |
|
51 | 51 | $this->assertArrayHasKey('data_class', $options); |
52 | 52 | $this->assertArrayHasKey('compact_units', $options); |
53 | 53 | $this->assertArrayHasKey('intention', $options); |
@@ -224,7 +224,7 @@ |
||
224 | 224 | */ |
225 | 225 | public static function getRequestsFor($requestFieldName, $requestFieldValue) |
226 | 226 | { |
227 | - return array_filter(self::$requests, function ($request) use ($requestFieldName, $requestFieldValue) { |
|
227 | + return array_filter(self::$requests, function($request) use ($requestFieldName, $requestFieldValue) { |
|
228 | 228 | return array_key_exists($requestFieldName, $request) && $request[$requestFieldName] == $requestFieldValue; |
229 | 229 | }); |
230 | 230 | } |
@@ -118,7 +118,7 @@ |
||
118 | 118 | $products = $this->doctrineHelper |
119 | 119 | ->getEntityRepositoryForClass('OroProductBundle:Product') |
120 | 120 | ->findBy(['id' => $ids]); |
121 | - return array_reduce($products, function ($result, Product $product) { |
|
121 | + return array_reduce($products, function($result, Product $product) { |
|
122 | 122 | $result[$product->getId()] = $product; |
123 | 123 | return $result; |
124 | 124 | }, []); |
@@ -67,11 +67,11 @@ discard block |
||
67 | 67 | $isManualEditGranted = $this->orderAddressSecurityProvider->isManualEditGranted($type); |
68 | 68 | $this->initCustomerAddressField($builder, $type, $order, $isManualEditGranted, $isEditEnabled); |
69 | 69 | |
70 | - $builder->add('phone', 'text', ['required' => false, StripTagsExtension::OPTION_NAME => true,]); |
|
70 | + $builder->add('phone', 'text', ['required' => false, StripTagsExtension::OPTION_NAME => true, ]); |
|
71 | 71 | |
72 | 72 | $builder->addEventListener( |
73 | 73 | FormEvents::SUBMIT, |
74 | - function (FormEvent $event) use ($isManualEditGranted) { |
|
74 | + function(FormEvent $event) use ($isManualEditGranted) { |
|
75 | 75 | if (!$isManualEditGranted) { |
76 | 76 | $event->setData(null); |
77 | 77 | } |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | { |
152 | 152 | array_walk_recursive( |
153 | 153 | $addresses, |
154 | - function (&$item) { |
|
154 | + function(&$item) { |
|
155 | 155 | if ($item instanceof AbstractAddress) { |
156 | 156 | $item = $this->addressFormatter->format($item, null, ', '); |
157 | 157 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | |
175 | 175 | array_walk_recursive( |
176 | 176 | $addresses, |
177 | - function ($item, $key) use (&$data) { |
|
177 | + function($item, $key) use (&$data) { |
|
178 | 178 | if ($item instanceof AbstractAddress) { |
179 | 179 | $data[$key] = $this->serializer->normalize($item); |
180 | 180 | } |
@@ -1192,7 +1192,7 @@ discard block |
||
1192 | 1192 | */ |
1193 | 1193 | public function setShippingMethod($shippingMethod) |
1194 | 1194 | { |
1195 | - $this->shippingMethod = (string) $shippingMethod; |
|
1195 | + $this->shippingMethod = (string)$shippingMethod; |
|
1196 | 1196 | |
1197 | 1197 | return $this; |
1198 | 1198 | } |
@@ -1211,7 +1211,7 @@ discard block |
||
1211 | 1211 | */ |
1212 | 1212 | public function setShippingMethodType($shippingMethodType) |
1213 | 1213 | { |
1214 | - $this->shippingMethodType = (string) $shippingMethodType; |
|
1214 | + $this->shippingMethodType = (string)$shippingMethodType; |
|
1215 | 1215 | |
1216 | 1216 | return $this; |
1217 | 1217 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | ->method('round') |
51 | 51 | ->will( |
52 | 52 | $this->returnCallback( |
53 | - function ($value) { |
|
53 | + function($value) { |
|
54 | 54 | return round($value, 2, PHP_ROUND_HALF_UP); |
55 | 55 | } |
56 | 56 | ) |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ->method('trans') |
100 | 100 | ->with('oro.order.subtotals.' . DiscountSubtotalProvider::TYPE) |
101 | 101 | ->willReturn(ucfirst(DiscountSubtotalProvider::TYPE)); |
102 | - $subtotalMock = $this->createMock('Oro\Bundle\PricingBundle\SubtotalProcessor\Model\Subtotal'); |
|
102 | + $subtotalMock = $this->createMock('Oro\Bundle\PricingBundle\SubtotalProcessor\Model\Subtotal'); |
|
103 | 103 | $this->lineItemSubtotal->expects($this->once()) |
104 | 104 | ->method('getSubtotal') |
105 | 105 | ->willReturn($subtotalMock); |