Test Setup Failed
Push — master ( 568f60...80f464 )
by
unknown
03:06
created
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.
SalesBundle/Migrations/Schema/v1_31/Query/MigrateB2bCustomersQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     protected function doExecute(LoggerInterface $logger, $dryRun = false)
53 53
     {
54
-        $query = 'SELECT id, name, user_owner_id, organization_id, name, createdAt, updatedAt '.
54
+        $query = 'SELECT id, name, user_owner_id, organization_id, name, createdAt, updatedAt ' .
55 55
             'FROM orocrm_sales_b2bcustomer WHERE account_id IS NULL';
56 56
         $customersWithoutAccount = $this->connection->fetchAll($query);
57 57
         $serializedDataColumnExists = $this->schema->getTable('orocrm_account')->hasColumn('serialized_data');
Please login to merge, or discard this patch.
SalesBundle/Migrations/Schema/v1_31/UpdateInheritanceActivityTargets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
         $newValue = array_filter(
71 71
             $inheritanceTargets,
72
-            function ($inheritanceTarget) {
72
+            function($inheritanceTarget) {
73 73
                 return $inheritanceTarget['target'] !== Opportunity::class;
74 74
             }
75 75
         );
Please login to merge, or discard this patch.
src/Oro/Bundle/SalesBundle/Migrations/Schema/v1_25_4/FixReportsQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
             $isChanged = true;
227 227
             $value = $this->filterValue($filter);
228 228
             $stringType = isset($filter['criterion']['data']['type'])
229
-                ? (int) $filter['criterion']['data']['type']
229
+                ? (int)$filter['criterion']['data']['type']
230 230
                 : null;
231 231
             // If string operator expects operand to be array
232 232
             // parse value off the db representation
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         }
271 271
 
272 272
         $search = ArrayUtil::find(
273
-            function ($column) use ($config, $key) {
273
+            function($column) use ($config, $key) {
274 274
                 return preg_match(sprintf('/%s$/', preg_quote($column)), $config[$key]);
275 275
             },
276 276
             array_keys($this->fixes['removedFields'])
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
         }
334 334
 
335 335
         return ArrayUtil::some(
336
-            function ($column) use ($filter) {
336
+            function($column) use ($filter) {
337 337
                 return preg_match(sprintf('/%s$/', preg_quote($column)), $filter['columnName']);
338 338
             },
339 339
             $this->fixes['chainFilters']
Please login to merge, or discard this patch.
Bundle/SalesBundle/Migrations/Schema/v1_23/UpdateWorkflowItemStepData.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         ];
132 132
 
133 133
         $sql = 'UPDATE oro_workflow_step SET name = :new_name, label = :new_label, is_final = :final' .
134
-               ' WHERE workflow_name = :workflow_name AND name = :old_name';
134
+                ' WHERE workflow_name = :workflow_name AND name = :old_name';
135 135
         foreach ($params as $param) {
136 136
             $this->logQuery($logger, $sql, $param, $types);
137 137
             $this->connection->executeUpdate($sql, $param, $types);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             'step_to_id'   => Type::INTEGER,
157 157
         ];
158 158
         $sql = 'DELETE FROM oro_workflow_transition_log' .
159
-               ' WHERE step_from_id = :step_from_id AND step_to_id = :step_to_id';
159
+                ' WHERE step_from_id = :step_from_id AND step_to_id = :step_to_id';
160 160
         $this->logQuery($logger, $sql, $params, $types);
161 161
         if (!$dryRun) {
162 162
             $this->connection->executeUpdate($sql, $params, $types);
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             'old_current_step_id' => Type::INTEGER,
173 173
         ];
174 174
         $sql = 'UPDATE oro_workflow_item SET current_step_id = :new_current_step_id' .
175
-               ' WHERE current_step_id = :old_current_step_id';
175
+                ' WHERE current_step_id = :old_current_step_id';
176 176
         $this->logQuery($logger, $sql, $params, $types);
177 177
         if (!$dryRun) {
178 178
             $this->connection->executeUpdate($sql, $params, $types);
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             'step_to_id'      => Type::INTEGER,
191 191
         ];
192 192
         $sql = 'UPDATE oro_workflow_transition_log SET transition = :new_transition' .
193
-               ' WHERE transition IN (:old_transitions) AND step_to_id = :step_to_id';
193
+                ' WHERE transition IN (:old_transitions) AND step_to_id = :step_to_id';
194 194
         $this->logQuery($logger, $sql, $params, $types);
195 195
         if (!$dryRun) {
196 196
             $this->connection->executeUpdate($sql, $params, $types);
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
             'step_from_id'   => Type::INTEGER,
213 213
         ];
214 214
         $sql = 'UPDATE oro_workflow_transition_log' .
215
-               ' SET transition = :new_transition, step_to_id = :new_step_to_id, step_from_id = :step_from_id' .
216
-               ' WHERE step_to_id = :old_step_to_id AND transition = :old_transition';
215
+                ' SET transition = :new_transition, step_to_id = :new_step_to_id, step_from_id = :step_from_id' .
216
+                ' WHERE step_to_id = :old_step_to_id AND transition = :old_transition';
217 217
         $this->logQuery($logger, $sql, $params, $types);
218 218
         if (!$dryRun) {
219 219
             $this->connection->executeUpdate($sql, $params, $types);
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             'step_from_id'   => Type::INTEGER,
234 234
         ];
235 235
         $sql = 'UPDATE oro_workflow_transition_log SET transition = :new_transition, step_from_id = :step_from_id' .
236
-               ' WHERE step_to_id = :step_to_id AND transition = :old_transition';
236
+                ' WHERE step_to_id = :step_to_id AND transition = :old_transition';
237 237
         $this->logQuery($logger, $sql, $params, $types);
238 238
         if (!$dryRun) {
239 239
             $this->connection->executeUpdate($sql, $params, $types);
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
         ];
299 299
 
300 300
         $sql = 'UPDATE orocrm_sales_opportunity SET workflow_step_id = :new_workflow_step_id' .
301
-               ' WHERE workflow_step_id = :old_workflow_step_id AND status_id = :status_id';
301
+                ' WHERE workflow_step_id = :old_workflow_step_id AND status_id = :status_id';
302 302
 
303 303
         foreach ($params as $param) {
304 304
             $this->logQuery($logger, $sql, $param, $types);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@
 block discarded – undo
322 322
 
323 323
         $steps = array_filter(
324 324
             $this->steps,
325
-            function ($val) use ($name) {
325
+            function($val) use ($name) {
326 326
                 return $val['name'] === $name;
327 327
             }
328 328
         );
Please login to merge, or discard this patch.