Test Setup Failed
Push — master ( 13bd30...349f0e )
by
unknown
03:34
created
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.
src/Oro/Bundle/SalesBundle/Migrations/Schema/v1_25/AddLeadAddressTable.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,13 +87,13 @@
 block discarded – undo
87 87
     protected function addMigrationQueries(QueryBag $queries)
88 88
     {
89 89
         $sql = 'INSERT INTO orocrm_sales_lead_address(owner_id, region_code, country_code, is_primary, label, street,' .
90
-               ' street2, city, postal_code, organization, region_text, name_prefix, first_name, middle_name,' .
91
-               ' last_name, name_suffix, created, updated)' .
92
-               'SELECT lead.id, addr.region_code, addr.country_code,' .
93
-               ' \'1\', addr.label, addr.street, addr.street2, addr.city, addr.postal_code, addr.organization,' .
94
-               ' addr.region_text, addr.name_prefix, addr.first_name, addr.middle_name, addr.last_name,' .
95
-               ' addr.name_suffix, addr.created, addr.updated FROM oro_address as addr' .
96
-               ' INNER JOIN orocrm_sales_lead as lead on lead.address_id = addr.id';
90
+                ' street2, city, postal_code, organization, region_text, name_prefix, first_name, middle_name,' .
91
+                ' last_name, name_suffix, created, updated)' .
92
+                'SELECT lead.id, addr.region_code, addr.country_code,' .
93
+                ' \'1\', addr.label, addr.street, addr.street2, addr.city, addr.postal_code, addr.organization,' .
94
+                ' addr.region_text, addr.name_prefix, addr.first_name, addr.middle_name, addr.last_name,' .
95
+                ' addr.name_suffix, addr.created, addr.updated FROM oro_address as addr' .
96
+                ' INNER JOIN orocrm_sales_lead as lead on lead.address_id = addr.id';
97 97
 
98 98
         $queries->addPostQuery(new SqlMigrationQuery($sql));
99 99
     }
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Migrations/Schema/v1_25_2/FillClosedAtField.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
 ) af1 ON af1.id = af.id
82 82
 GROUP BY object_id, a.id, af.new_text
83 83
 SQL;
84
-        $params         = [
84
+        $params = [
85 85
             'field'       => 'status',
86 86
             'statuses'    => ['Closed Lost', 'Closed Won', 'Lost', 'Won'],
87 87
             'objectClass' => 'Oro\Bundle\SalesBundle\Entity\Opportunity'
88 88
         ];
89
-        $types          = [
89
+        $types = [
90 90
             'field'       => Type::STRING,
91 91
             'statuses'    => Connection::PARAM_STR_ARRAY,
92 92
             'objectClass' => Type::STRING
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             'objectClass' => 'Oro\Bundle\SalesBundle\Entity\Opportunity',
160 160
             'status_ids'  => [Opportunity::STATUS_WON, Opportunity::STATUS_LOST]
161 161
         ];
162
-        $types  = [
162
+        $types = [
163 163
             'field'       => Type::STRING,
164 164
             'statuses'    => Connection::PARAM_STR_ARRAY,
165 165
             'objectClass' => Type::STRING,
Please login to merge, or discard this patch.