Test Setup Failed
Push — master ( f71368...e98e25 )
by
unknown
03:58
created
src/Oro/Bundle/PricingBundle/Entity/Repository/ProductPriceRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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())
Please login to merge, or discard this patch.
src/Oro/Bundle/UPSBundle/Tests/Behat/Context/FeatureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
Bundle/WebsiteSearchBundle/Tests/Functional/Engine/ORM/OrmIndexerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.