Test Setup Failed
Push — master ( c44b4b...5b27e5 )
by
unknown
04:09
created
Tests/Unit/EventListener/ProductVariantCustomFieldsDatagridListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
         $this->listener->onBuildBeforeHideUnsuitable($event);
167 167
 
168 168
         $expectedConfigValue = $this->getInitConfig();
169
-        $this->setValueByPath($expectedConfigValue, '[source][query][where][and]', ['1 = 0' ]);
169
+        $this->setValueByPath($expectedConfigValue, '[source][query][where][and]', ['1 = 0']);
170 170
 
171 171
         $this->setValueByPath($expectedConfigValue, '[source][query][where][or]', [
172 172
             sprintf('%s.id IS NOT NULL', self::PRODUCT_VARIANT_LINK_ALIAS)
Please login to merge, or discard this patch.
Validator/Constraints/AttributeFamilyUsageInVariantFieldValidatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 
71 71
         $this->doctrineHelper->expects($this->any())
72 72
             ->method('getEntityRepositoryForClass')
73
-            ->willReturnCallback(function ($class) {
73
+            ->willReturnCallback(function($class) {
74 74
                 switch ($class) {
75 75
                     case AttributeGroupRelation::class:
76 76
                         return $this->attributeRelationRepository;
Please login to merge, or discard this patch.
ProductBundle/Tests/Unit/Async/ReindexProductCollectionProcessorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
                 [$expectedJobName . ':reindex:1'],
186 186
                 [$expectedJobName . ':reindex:2']
187 187
             )
188
-            ->willReturnCallback(function ($name, $callback) use (&$i) {
188
+            ->willReturnCallback(function($name, $callback) use (&$i) {
189 189
                 $delayedJob = $this->getEntity(Job::class, ['id' => ++$i]);
190 190
                 return $callback($this->jobRunner, $delayedJob);
191 191
             });
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         $this->jobRunner->expects($this->once())
321 321
             ->method('runUnique')
322 322
             ->with('msg-001', $expectedJobName)
323
-            ->willReturnCallback(function ($jobId, $name, $callback) use ($childJob) {
323
+            ->willReturnCallback(function($jobId, $name, $callback) use ($childJob) {
324 324
                 return $callback($this->jobRunner, $childJob);
325 325
             });
326 326
     }
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
         $this->jobRunner->expects($this->once())
348 348
             ->method('createDelayed')
349 349
             ->with($expectedJobName . ':reindex:1')
350
-            ->willReturnCallback(function ($name, $callback) use (&$i) {
350
+            ->willReturnCallback(function($name, $callback) use (&$i) {
351 351
                 $delayedJob = $this->getEntity(Job::class, ['id' => ++$i]);
352 352
                 return $callback($this->jobRunner, $delayedJob);
353 353
             });
Please login to merge, or discard this patch.
ImportExport/Strategy/LocalizedFallbackValueAwareStrategyTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 */
Please login to merge, or discard this patch.
Tests/Functional/EventListener/ProductVisibilityRestrictionListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
Tests/Functional/EventListener/ProductCollectionDatagridListenerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
ProductBundle/Tests/Functional/Form/Type/AbstractProductSelectTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/Tests/Behat/Context/FeatureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/Twig/ProductExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.