Test Setup Failed
Push — master ( 80f464...13bd30 )
by
unknown
03:16
created
src/Oro/Bundle/SalesBundle/Form/Type/CustomerType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
             $this->getCreateCustomersData()
96 96
         );
97 97
 
98
-        $view->vars['parentClass']         = $options['parent_class'];
98
+        $view->vars['parentClass'] = $options['parent_class'];
99 99
         $view->vars['configs']['allowCreateNew'] = ArrayUtil::some(
100
-            function (array $customer) {
100
+            function(array $customer) {
101 101
                 return $customer['className'] === Account::class;
102 102
             },
103 103
             $view->vars['createCustomersData']
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
         $resolver->setDefaults(
152 152
             [
153
-                'configs' => function (Options $options, $value) {
153
+                'configs' => function(Options $options, $value) {
154 154
                     return [
155 155
                         'component'               => 'sales-customer',
156 156
                         'renderedPropertyName'    => 'text',
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         $result = [
228 228
             'createCustomersData' => [],
229
-            'hasGridData' => (bool) $this->multiGridProvider->getEntitiesData($customerClasses),
229
+            'hasGridData' => (bool)$this->multiGridProvider->getEntitiesData($customerClasses),
230 230
         ];
231 231
 
232 232
         foreach ($customerClasses as $class) {
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Controller/Api/Rest/LeadEmailController.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
             return new JsonResponse(["id" => ""]);
62 62
         } catch (\Exception $e) {
63
-            return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage() ], $e->getCode());
63
+            return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage()], $e->getCode());
64 64
         }
65 65
     }
66 66
 
Please login to merge, or discard this patch.
Oro/Bundle/SalesBundle/Controller/Api/Rest/B2bCustomerPhoneController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
             return new JsonResponse(["id" => ""]);
125 125
         } catch (\Exception $e) {
126
-            return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage() ], $e->getCode());
126
+            return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage()], $e->getCode());
127 127
         }
128 128
     }
129 129
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     protected function getPreparedItem($entity, $resultFields = [])
147 147
     {
148 148
         $result['id']      = $entity->getId();
149
-        $result['owner']   = (string) $entity->getOwner();
149
+        $result['owner']   = (string)$entity->getOwner();
150 150
         $result['phone']   = $entity->getPhone();
151 151
         $result['primary'] = $entity->isPrimary();
152 152
 
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Controller/Api/Rest/LeadAddressController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         /** @var Lead $lead */
42 42
         $lead = $this->getLeadManager()->find($leadId);
43
-        $result  = [];
43
+        $result = [];
44 44
 
45 45
         if (!empty($lead)) {
46 46
             $items = $lead->getAddresses();
Please login to merge, or discard this patch.
Tests/Functional/Fixture/LoadOpportunityByStatusWidgetFixture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $className = ExtendHelper::buildEnumValueClassName(Opportunity::INTERNAL_STATUS_CODE);
38 38
         $openStatus = $this->em->getRepository($className)->find(ExtendHelper::buildEnumValueId('in_progress'));
39 39
         $opportunity = new Opportunity();
40
-        $opportunity->setName('name '.$id);
40
+        $opportunity->setName('name ' . $id);
41 41
         $opportunity->setStatus($openStatus);
42 42
         $opportunity->setOrganization($this->organization);
43 43
         $this->em->persist($opportunity);
Please login to merge, or discard this patch.
SalesBundle/Tests/Functional/Fixture/LoadCampaignLeadsWidgetFixture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public function createLead($createdAt, $id)
36 36
     {
37 37
         $lead = new Lead();
38
-        $lead->setName('name '.$id);
38
+        $lead->setName('name ' . $id);
39 39
         $lead->setOrganization($this->organization);
40 40
         $lead->setCampaign($this->getReference('default_campaign'));
41 41
         $this->em->persist($lead);
Please login to merge, or discard this patch.
Oro/Bundle/SalesBundle/Tests/Unit/Form/Type/LeadToOpportunityTypeTest.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -122,23 +122,23 @@
 block discarded – undo
122 122
     public function contactFieldTypeDataProvider()
123 123
     {
124 124
         return [
125
-          [
126
-              'fields' => [
127
-                  'closeReason'  => 'translatable_entity',
128
-                  'contact'  => 'oro_contact_select',
129
-                  'customer' => 'oro_sales_b2bcustomer_with_channel_create_or_select',
130
-                  'name'  => 'text',
131
-                  'dataChannel'  => 'oro_channel_select_type',
132
-                  'closeDate'  => 'oro_date',
133
-                  'probability'  => 'oro_percent',
134
-                  'budgetAmount' => 'oro_money',
135
-                  'closeRevenue'  => 'oro_money',
136
-                  'customerNeed'  => 'oro_resizeable_rich_text',
137
-                  'proposedSolution'  => 'oro_resizeable_rich_text',
138
-                  'notes'  => 'oro_resizeable_rich_text',
139
-                  'status'  => 'oro_sales_opportunity_status_select',
140
-              ]
141
-          ]
125
+            [
126
+                'fields' => [
127
+                    'closeReason'  => 'translatable_entity',
128
+                    'contact'  => 'oro_contact_select',
129
+                    'customer' => 'oro_sales_b2bcustomer_with_channel_create_or_select',
130
+                    'name'  => 'text',
131
+                    'dataChannel'  => 'oro_channel_select_type',
132
+                    'closeDate'  => 'oro_date',
133
+                    'probability'  => 'oro_percent',
134
+                    'budgetAmount' => 'oro_money',
135
+                    'closeRevenue'  => 'oro_money',
136
+                    'customerNeed'  => 'oro_resizeable_rich_text',
137
+                    'proposedSolution'  => 'oro_resizeable_rich_text',
138
+                    'notes'  => 'oro_resizeable_rich_text',
139
+                    'status'  => 'oro_sales_opportunity_status_select',
140
+                ]
141
+            ]
142 142
         ];
143 143
     }
144 144
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
         $probabilityProvider = new ProbabilityProvider($configManager);
179 179
 
180 180
         $defaultStatuses = array_map(
181
-            function ($id) {
181
+            function($id) {
182 182
                 return $this->getOpportunityStatus($id);
183 183
             },
184 184
             $defaultStatuses
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Tests/Unit/Form/Type/OpportunityTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
         $probabilityProvider = new ProbabilityProvider($configManager);
108 108
 
109
-        $defaultStatuses = array_map(function ($id) {
109
+        $defaultStatuses = array_map(function($id) {
110 110
             return $this->getOpportunityStatus($id);
111 111
         }, $defaultStatuses);
112 112
 
Please login to merge, or discard this patch.
SalesBundle/Tests/Behat/Element/OpportunityProbabilitiesConfigRaw.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
         $this->probability = $row->find('css', 'input[data-name="field__probability"]');
46 46
         self::assertTrue($this->probability->isValid());
47
-        $this->probabilityValue = (int) $this->probability->getValue();
47
+        $this->probabilityValue = (int)$this->probability->getValue();
48 48
         $this->isProbabilityReadOnly = $this->probability->hasAttribute('readonly');
49 49
 
50 50
         $this->default = $row->find('css', 'input[data-name="field__is-default"]');
Please login to merge, or discard this patch.