@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | ] |
253 | 253 | ], |
254 | 254 | ], |
255 | - function ($product) { |
|
255 | + function($product) { |
|
256 | 256 | $this->assertInstanceOf('Oro\Bundle\ProductBundle\Entity\Product', $product); |
257 | 257 | |
258 | 258 | /** @var \Oro\Bundle\ProductBundle\Entity\Product $product */ |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | ], |
294 | 294 | ] |
295 | 295 | ], |
296 | - function ($product) { |
|
296 | + function($product) { |
|
297 | 297 | $this->assertInstanceOf('Oro\Bundle\ProductBundle\Entity\Product', $product); |
298 | 298 | |
299 | 299 | /** @var \Oro\Bundle\ProductBundle\Entity\Product $product */ |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | static::$testValue = 'test_' . uniqid(); |
49 | 49 | |
50 | - $this->listener = function (ProductSearchQueryRestrictionEvent $event) { |
|
50 | + $this->listener = function(ProductSearchQueryRestrictionEvent $event) { |
|
51 | 51 | $expr = Criteria::expr(); |
52 | 52 | |
53 | 53 | $event->getQuery()->getCriteria()->andWhere($expr->eq('name', self::$testValue)); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | { |
26 | 26 | // convert reference names array into string with Ids, in order to support exclude&include args |
27 | 27 | $request = array_map( |
28 | - function ($content) { |
|
28 | + function($content) { |
|
29 | 29 | if (is_array($content)) { |
30 | 30 | $result = []; |
31 | 31 | foreach ($content as $productName) { |
@@ -43,14 +43,14 @@ discard block |
||
43 | 43 | |
44 | 44 | $data = json_decode($result->getContent(), true); |
45 | 45 | $filteredProductsSku = array_map( |
46 | - function (array $item) { |
|
46 | + function(array $item) { |
|
47 | 47 | return $item['sku']; |
48 | 48 | }, |
49 | 49 | $data['data'] |
50 | 50 | ); |
51 | 51 | |
52 | 52 | $expectedFilteredProductsSku = array_map( |
53 | - function ($productName) { |
|
53 | + function($productName) { |
|
54 | 54 | return $this->getReference($productName)->getSku(); |
55 | 55 | }, |
56 | 56 | $expectedFilteredProducts |
@@ -126,7 +126,7 @@ |
||
126 | 126 | $this->assertJsonResponseStatusCodeEquals($result, 200); |
127 | 127 | |
128 | 128 | $actualProducts = array_map( |
129 | - function ($result) { |
|
129 | + function($result) { |
|
130 | 130 | return $result->sku; |
131 | 131 | }, |
132 | 132 | json_decode($result->getContent())->$dataFieldName |
@@ -304,7 +304,7 @@ |
||
304 | 304 | */ |
305 | 305 | public function iShouldSeePopup($title) |
306 | 306 | { |
307 | - $popup = $this->spin(function (MinkAwareContext $context) { |
|
307 | + $popup = $this->spin(function(MinkAwareContext $context) { |
|
308 | 308 | return $context->getSession()->getPage()->find('css', '.popover-content'); |
309 | 309 | }); |
310 | 310 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | $productId = null; |
75 | 75 | if ($product) { |
76 | - $productId = is_array($product) ? $product['id'] : $product->getId(); |
|
76 | + $productId = is_array($product) ? $product['id'] : $product->getId(); |
|
77 | 77 | } |
78 | 78 | if ($productId) { |
79 | 79 | $form->vars['id'] = sprintf('%s-product-id-%s', $form->vars['_notUniqueId'], $productId); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | { |
67 | 67 | $doctrineHelper = $this->getContainer()->get('oro_entity.doctrine_helper'); |
68 | 68 | $className = $this->getContainer()->getParameter('oro_product.entity.product_image.class'); |
69 | - $queryBuilder = $doctrineHelper |
|
69 | + $queryBuilder = $doctrineHelper |
|
70 | 70 | ->getEntityRepositoryForClass($className) |
71 | 71 | ->createQueryBuilder('productImage'); |
72 | 72 | |
@@ -85,6 +85,6 @@ discard block |
||
85 | 85 | */ |
86 | 86 | protected function getForceOption(InputInterface $input) |
87 | 87 | { |
88 | - return (bool) $input->getOption(self::OPTION_FORCE); |
|
88 | + return (bool)$input->getOption(self::OPTION_FORCE); |
|
89 | 89 | } |
90 | 90 | } |
@@ -133,8 +133,8 @@ |
||
133 | 133 | $this->assertTrue(isset($actualCheckouts[$id])); |
134 | 134 | $actualCheckout = $actualCheckouts[$id]; |
135 | 135 | $this->assertEquals( |
136 | - (float) $actualCheckout['subtotal'] + (float) $actualCheckout['shippingCost'], |
|
137 | - (float) $actualCheckout['total'] |
|
136 | + (float)$actualCheckout['subtotal'] + (float)$actualCheckout['shippingCost'], |
|
137 | + (float)$actualCheckout['total'] |
|
138 | 138 | ); |
139 | 139 | } |
140 | 140 | } |
@@ -173,7 +173,7 @@ |
||
173 | 173 | protected function getExistingSlugs(SlugUrl $slugUrl, Collection $slugs) |
174 | 174 | { |
175 | 175 | return $slugs->filter( |
176 | - function (Slug $slug) use ($slugUrl) { |
|
176 | + function(Slug $slug) use ($slugUrl) { |
|
177 | 177 | return $slugUrl->getUrl() === $slug->getUrl() |
178 | 178 | && $slugUrl->getLocalization() === $slug->getLocalization(); |
179 | 179 | } |