Test Setup Failed
Push — master ( 8fc9f5...103df2 )
by
unknown
03:48
created
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.
src/Oro/Bridge/MarketingCRM/Entity/Repository/ChannelRepository.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
         $qb = $this->_em->createQueryBuilder();
38 38
 
39 39
         $entityName = $this->isPrecalculatedStatisticEnabled() ?
40
-            'OroTrackingBundle:UniqueTrackingVisit' :
41
-            'OroTrackingBundle:TrackingVisit';
40
+            'OroTrackingBundle:UniqueTrackingVisit' : 'OroTrackingBundle:TrackingVisit';
42 41
 
43 42
         $qb->select('COUNT(visit.id)')
44 43
             ->from($entityName, 'visit')
Please login to merge, or discard this patch.
src/Oro/Bridge/MarketingCRM/Provider/TrackingVisitProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                     ->setParameter('to', $to);
82 82
             }
83 83
 
84
-            return (int) $this->aclHelper->apply($queryBuilder)->getSingleScalarResult();
84
+            return (int)$this->aclHelper->apply($queryBuilder)->getSingleScalarResult();
85 85
         } catch (NoResultException $ex) {
86 86
             return 0;
87 87
         }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     ->setParameter('to', $to);
129 129
             }
130 130
 
131
-            return (int) $this->aclHelper->apply($queryBuilder)->getSingleScalarResult();
131
+            return (int)$this->aclHelper->apply($queryBuilder)->getSingleScalarResult();
132 132
         } catch (NoResultException $ex) {
133 133
             return 0;
134 134
         }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             ->getQuery()
167 167
             ->getSingleResult();
168 168
 
169
-        $count = (int) $result['cnt'];
169
+        $count = (int)$result['cnt'];
170 170
         $first = new \DateTimeImmutable($result['first']);
171 171
         $last = new \DateTimeImmutable($result['last']);
172 172
         $daysDiff = $last->diff($first)->d;
Please login to merge, or discard this patch.