Test Setup Failed
Push — master ( fe3d4c...e44f29 )
by
unknown
03:25
created
Tests/Unit/Form/Type/ShippingMethodsConfigsRuleDestinationTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
         $this->assertEquals($expected->getCountry(), $actual->getCountry());
98 98
         $this->assertEquals($expected->getRegion(), $actual->getRegion());
99 99
 
100
-        $getNames = function (ShippingMethodsConfigsRuleDestinationPostalCode $code) {
100
+        $getNames = function(ShippingMethodsConfigsRuleDestinationPostalCode $code) {
101 101
             return $code->getName();
102 102
         };
103 103
 
Please login to merge, or discard this patch.
ShippingBundle/Tests/Unit/Form/Type/ShippingMethodsConfigsRuleTypeTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,8 +111,8 @@
 block discarded – undo
111 111
         $translator = $this->createMock(TranslatorInterface::class);
112 112
         $translator->expects(static::any())
113 113
             ->method('trans')
114
-            ->will(static::returnCallback(function ($message) {
115
-                return $message.'_translated';
114
+            ->will(static::returnCallback(function($message) {
115
+                return $message . '_translated';
116 116
             }));
117 117
 
118 118
         $this->formType = new ShippingMethodsConfigsRuleType();
Please login to merge, or discard this patch.
Functional/Entity/Repository/ShippingMethodsConfigsRuleRepositoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     private function getEntitiesIds(array $entities)
52 52
     {
53
-        return array_map(function ($entity) {
53
+        return array_map(function($entity) {
54 54
             return $entity->getId();
55 55
         }, $entities);
56 56
     }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     protected function getEntitiesByReferences(array $rules)
202 202
     {
203
-        return array_map(function ($ruleReference) {
203
+        return array_map(function($ruleReference) {
204 204
             return $this->getReference($ruleReference);
205 205
         }, $rules);
206 206
     }
Please login to merge, or discard this patch.
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.