Test Setup Failed
Push — master ( 13bd30...349f0e )
by
unknown
03:34
created
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.
src/Oro/Bundle/AccountBundle/Tests/Selenium/CreateAccountTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function testCreateAccount()
19 19
     {
20
-        $accountName = 'Account_'.mt_rand();
20
+        $accountName = 'Account_' . mt_rand();
21 21
 
22 22
         $login = $this->login();
23 23
         /** @var Accounts $login */
Please login to merge, or discard this patch.
src/Oro/Bundle/AccountBundle/Tests/Functional/API/RestAccountTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $id = $request['id'];
56 56
         $result = array_filter(
57 57
             $result,
58
-            function ($a) use ($id) {
58
+            function($a) use ($id) {
59 59
                 return $a['id'] == $id;
60 60
             }
61 61
         );
Please login to merge, or discard this patch.
EventListener/Datagrid/AccountsByOpportunitiesReportListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $filters = $config->offsetGetByPath(self::FILTERS_PATH, array());
52 52
 
53 53
         foreach ($enumValues as $id => $text) {
54
-            $label = $id.'Count';
54
+            $label = $id . 'Count';
55 55
             $selects[] = sprintf($selectTemplate, $id, $label);
56 56
             $grandTotals[$label] = ['expr' => sprintf($grandTotalTemplate, $id)];
57 57
             $columns[$label] = ['label' => $text, 'frontend_type' => 'integer'];
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
             }
66 66
         }
67 67
 
68
-        $selects[] = 'COUNT(o.id) as '.self::TOTALOPS_LABEL;
68
+        $selects[] = 'COUNT(o.id) as ' . self::TOTALOPS_LABEL;
69 69
         $grandTotals[self::TOTALOPS_LABEL] = ['expr' => 'COUNT(o.id)'];
70 70
         $columns[self::TOTALOPS_LABEL] = [
71
-            'label' => 'oro.reportcrm.datagrid.columns.'.self::TOTALOPS_LABEL,
71
+            'label' => 'oro.reportcrm.datagrid.columns.' . self::TOTALOPS_LABEL,
72 72
             'frontend_type' => 'integer'
73 73
         ];
74 74
         $sorters[self::TOTALOPS_LABEL] = ['data_name' => self::TOTALOPS_LABEL];
Please login to merge, or discard this patch.
Oro/Bundle/ReportCRMBundle/Tests/Functional/DataFixtures/LoadLeadsData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         $isoCode = $data['Country'];
259 259
         $country = array_filter(
260 260
             $this->countries,
261
-            function (Country $a) use ($isoCode) {
261
+            function(Country $a) use ($isoCode) {
262 262
                 return $a->getIso2Code() == $isoCode;
263 263
             }
264 264
         );
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
         $regions = $country->getRegions();
273 273
 
274 274
         $region = $regions->filter(
275
-            function (Region $a) use ($idRegion) {
275
+            function(Region $a) use ($idRegion) {
276 276
                 return $a->getCode() == $idRegion;
277 277
             }
278 278
         );
Please login to merge, or discard this patch.
src/Oro/Bridge/TaskCRM/Tests/Selenium/ContactActivityListTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function testCreateContact()
15 15
     {
16
-        $contactName = 'Contact_'.mt_rand();
16
+        $contactName = 'Contact_' . mt_rand();
17 17
 
18 18
         $login = $this->login();
19 19
         /** @var Contacts $login */
Please login to merge, or discard this patch.
src/Oro/Bridge/CallCRM/Migrations/Data/Demo/ORM/LoadCallData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function getDependencies()
41 41
     {
42
-        return ['Oro\Bundle\DemoDataBundle\Migrations\Data\Demo\ORM\LoadContactData',];
42
+        return ['Oro\Bundle\DemoDataBundle\Migrations\Data\Demo\ORM\LoadContactData', ];
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.