@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $types = [\PDO::PARAM_INT]; |
50 | 50 | if ($products) { |
51 | 51 | $parameters[] = array_map( |
52 | - function ($product) { |
|
52 | + function($product) { |
|
53 | 53 | return $product instanceof Product ? $product->getId() : $product; |
54 | 54 | }, |
55 | 55 | $products |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $qb = $this->createQueryBuilder('price'); |
170 | 170 | |
171 | 171 | // ensure all skus are strings to avoid postgres's "No operator matches the given name and argument type(s)." |
172 | - array_walk($productSkus, function (& $sku) { |
|
172 | + array_walk($productSkus, function(& $sku) { |
|
173 | 173 | $sku = (string)$sku; |
174 | 174 | }); |
175 | 175 | |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | $price->setId($id); |
260 | 260 | } |
261 | 261 | $qb |
262 | - ->setParameter('price_rule_id', $price->getPriceRule() ? $price->getPriceRule()->getId(): null) |
|
262 | + ->setParameter('price_rule_id', $price->getPriceRule() ? $price->getPriceRule()->getId() : null) |
|
263 | 263 | ->setParameter('unit_code', $price->getProductUnitCode()) |
264 | 264 | ->setParameter('product_id', $price->getProduct()->getId()) |
265 | 265 | ->setParameter('price_list_id', $price->getPriceList()->getId()) |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $repository = $entityManager->getRepository(ShippingService::class); |
100 | 100 | |
101 | 101 | /** @var ShippingService $shippingService */ |
102 | - $shippingService = $repository->findOneBy(['description' => $description]); |
|
102 | + $shippingService = $repository->findOneBy(['description' => $description]); |
|
103 | 103 | |
104 | 104 | if (!$shippingService) { |
105 | 105 | throw new \InvalidArgumentException(sprintf('No shipping service "%s" found', $description)); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $websiteProvider = $this->createMock(WebsiteProviderInterface::class); |
86 | 86 | $websiteProvider->expects($this->any()) |
87 | 87 | ->method('getWebsiteIds') |
88 | - ->will($this->returnCallback(function () use ($repo) { |
|
88 | + ->will($this->returnCallback(function() use ($repo) { |
|
89 | 89 | return $repo->getWebsiteIdentifiers(); |
90 | 90 | })); |
91 | 91 | |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | ] |
404 | 404 | ); |
405 | 405 | |
406 | - $items = $this->getResultItems(['alias' => 'oro_product_'. $notExistingId]); |
|
406 | + $items = $this->getResultItems(['alias' => 'oro_product_' . $notExistingId]); |
|
407 | 407 | |
408 | 408 | $this->assertCount(0, $items); |
409 | 409 | } |