Test Setup Failed
Push — master ( 68f01d...d00a46 )
by
unknown
03:43
created
Tests/Functional/Frontend/CheckoutAbsenceBootstrap3ClassesTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         $values['_widgetContainer'] = 'ajax';
93 93
         $values['_wid'] = 'ajax_checkout';
94 94
 
95
-        $crawler =  $this->client->request(
95
+        $crawler = $this->client->request(
96 96
             'POST',
97 97
             $form->getUri(),
98 98
             $values,
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/Helper/ProductImageHelper.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
                 $typeName = $type->getType();
30 30
 
31 31
                 array_key_exists($typeName, $imagesByTypeCounter) ?
32
-                    $imagesByTypeCounter[$typeName]++ :
33
-                    $imagesByTypeCounter[$typeName] = 1;
32
+                    $imagesByTypeCounter[$typeName]++ : $imagesByTypeCounter[$typeName] = 1;
34 33
             }
35 34
         }
36 35
 
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/ProductVariant/TypeHandler/EnumTypeHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     private function getOptions($fieldName, array $availability)
62 62
     {
63
-        $notAvailableVariants = array_filter($availability, function ($item) {
63
+        $notAvailableVariants = array_filter($availability, function($item) {
64 64
             return $item === false;
65 65
         });
66 66
 
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/Form/Type/ProductPrimaryUnitPrecisionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 ]
63 63
             );
64 64
 
65
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) {
65
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) {
66 66
             $unitPrecision = $event->getData();
67 67
             $form = $event->getForm();
68 68
 
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/Form/Type/ProductUnitPrecisionType.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@
 block discarded – undo
55 55
                     'unit_disabled',
56 56
                     ProductUnitSelectType::NAME,
57 57
                     [
58
-                       'compact' => $options['compact'],
59
-                       'disabled' => $disabled,
60
-                       'mapped' => false,
61
-                       'data' => $unitPrecision->getUnit()
58
+                        'compact' => $options['compact'],
59
+                        'disabled' => $disabled,
60
+                        'mapped' => false,
61
+                        'data' => $unitPrecision->getUnit()
62 62
                     ]
63 63
                 );
64 64
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             ->add('conversionRate', 'number', ['required' => false])
45 45
             ->add('sell', 'checkbox', ['required' => false]);
46 46
 
47
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) {
47
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) {
48 48
             $unitPrecision = $event->getData();
49 49
             $form = $event->getForm();
50 50
 
Please login to merge, or discard this patch.
ProductBundle/Entity/Repository/RelatedItem/RelatedProductRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function countRelationsForProduct($id)
28 28
     {
29
-        return (int) $this->createQueryBuilder('related_products')
29
+        return (int)$this->createQueryBuilder('related_products')
30 30
             ->select('COUNT(related_products.id)')
31 31
             ->where('related_products.product = :id')
32 32
             ->setParameter(':id', $id)
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/Entity/Repository/ProductRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@
 block discarded – undo
305 305
                         );
306 306
 
307 307
         $qb->where($qb->expr()->eq('pi.product', ':product_id'))
308
-           ->setParameter('product_id', $productId);
308
+            ->setParameter('product_id', $productId);
309 309
 
310 310
         return $qb->getQuery()->execute();
311 311
     }
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/Entity/Product.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
      */
1158 1158
     public function getImagesByType($type)
1159 1159
     {
1160
-        return $this->getImages()->filter(function (ProductImage $image) use ($type) {
1160
+        return $this->getImages()->filter(function(ProductImage $image) use ($type) {
1161 1161
             return $image->hasType($type);
1162 1162
         });
1163 1163
     }
@@ -1387,7 +1387,7 @@  discard block
 block discarded – undo
1387 1387
     {
1388 1388
         $primaryPrecision = $this->getPrimaryUnitPrecision();
1389 1389
         $additionalPrecisions = $this->getUnitPrecisions()
1390
-            ->filter(function ($precision) use ($primaryPrecision) {
1390
+            ->filter(function($precision) use ($primaryPrecision) {
1391 1391
                 return $precision != $primaryPrecision;
1392 1392
             });
1393 1393
 
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/Async/ReindexProductCollectionProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             $result = $this->jobRunner->runUnique(
95 95
                 $message->getMessageId(),
96 96
                 $jobName,
97
-                function (JobRunner $jobRunner, Job $job) use ($segment, $websiteIds, $isFull) {
97
+                function(JobRunner $jobRunner, Job $job) use ($segment, $websiteIds, $isFull) {
98 98
                     $i = 0;
99 99
                     foreach ($this->getAllProductIdsForReindex($segment, $isFull) as $batch) {
100 100
                         $reindexMsgData = $this->reindexMessageGranularizer->process(
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                         foreach ($reindexMsgData as $msgData) {
107 107
                             $jobRunner->createDelayed(
108 108
                                 sprintf('%s:reindex:%s', $job->getName(), ++$i),
109
-                                function (JobRunner $jobRunner, Job $child) use ($msgData) {
109
+                                function(JobRunner $jobRunner, Job $child) use ($msgData) {
110 110
                                     $msgData['jobId'] = $child->getId();
111 111
                                     $message = new Message($msgData, AsyncIndexer::DEFAULT_PRIORITY_REINDEX);
112 112
                                     $this->producer->send(AsyncIndexer::TOPIC_REINDEX, $message);
Please login to merge, or discard this patch.