Test Setup Failed
Push — master ( 335bea...ddb6c0 )
by
unknown
09:11 queued 05:05
created
src/Oro/Component/MessageQueue/Tests/Unit/Job/JobProcessorTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         $job = new Job();
146 146
         $job->setChildJobs([]);
147 147
 
148
-        $jobConfigurationProvider= $this->configureBaseMocksForStaleJobsCases($job);
148
+        $jobConfigurationProvider = $this->configureBaseMocksForStaleJobsCases($job);
149 149
         $this->jobProcessor->setJobConfigurationProvider($jobConfigurationProvider);
150 150
 
151 151
         $result = $this->jobProcessor->findOrCreateRootJob('owner-id', 'job-name', true);
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
 
528 528
         $this->jobStorage->expects(self::at(0))
529 529
             ->method('saveJob')
530
-            ->willReturnCallback(function (Job $job, $callback) {
530
+            ->willReturnCallback(function(Job $job, $callback) {
531 531
                 $callback($job);
532 532
             });
533 533
         $this->jobStorage->expects(self::at(1))
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 
584 584
         $this->jobStorage->expects(self::at(0))
585 585
             ->method('saveJob')
586
-            ->willReturnCallback(function (Job $job, $callback) {
586
+            ->willReturnCallback(function(Job $job, $callback) {
587 587
                 $callback($job);
588 588
             });
589 589
         $this->jobStorage->expects(self::at(1))
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 
596 596
         $this->jobStorage->expects(self::exactly(2))
597 597
             ->method('findJobById')
598
-            ->willReturnCallback(function ($jobId) use ($childRunnedJob, $childNewJob, $childRedeliveredJob) {
598
+            ->willReturnCallback(function($jobId) use ($childRunnedJob, $childNewJob, $childRedeliveredJob) {
599 599
                 $jobs = [
600 600
                     $childNewJob->getId() => $childNewJob,
601 601
                     $childRedeliveredJob->getId() => $childRedeliveredJob,
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
 
621 621
         $this->jobStorage->expects(self::once())
622 622
             ->method('saveJob')
623
-            ->willReturnCallback(function (Job $job, $callback) {
623
+            ->willReturnCallback(function(Job $job, $callback) {
624 624
                 $callback($job);
625 625
             });
626 626
 
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
         $this->jobStorage->method('saveJob')
697 697
             ->willReturnOnConsecutiveCalls(
698 698
                 self::throwException(new DuplicateJobException()),
699
-                self::returnCallback(function (Job $job, $callback) {
699
+                self::returnCallback(function(Job $job, $callback) {
700 700
                     $callback($job);
701 701
                 })
702 702
             );
Please login to merge, or discard this patch.
src/Oro/Component/MessageQueue/Tests/Unit/Job/DependentJobServiceTest.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
         $storage
38 38
             ->expects($this->once())
39 39
             ->method('saveJob')
40
-            ->will($this->returnCallback(function (Job $job, $callback) {
40
+            ->will($this->returnCallback(function(Job $job, $callback) {
41 41
                 $callback($job);
42 42
 
43 43
                 return true;
Please login to merge, or discard this patch.
src/Oro/Component/MessageQueue/Tests/Unit/Job/JobStorageTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             ->will($this->returnValue(0));
97 97
         $connection->expects($this->once())
98 98
             ->method('transactional')
99
-            ->will($this->returnCallback(function ($callback) use ($connection) {
99
+            ->will($this->returnCallback(function($callback) use ($connection) {
100 100
                 $callback($connection);
101 101
             }));
102 102
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
         $this->storage->saveJob(
126 126
             $job,
127
-            function () {
127
+            function() {
128 128
             }
129 129
         );
130 130
     }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             ->will($this->returnValue(0));
147 147
         $connection->expects($this->once())
148 148
             ->method('transactional')
149
-            ->will($this->returnCallback(function ($callback) use ($connection) {
149
+            ->will($this->returnCallback(function($callback) use ($connection) {
150 150
                 $callback($connection);
151 151
             }));
152 152
         $connection->expects($this->once())
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     {
178 178
         $this->storage->saveJob(
179 179
             new JobEntity(),
180
-            function () {
180
+            function() {
181 181
             }
182 182
         );
183 183
     }
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             ->will($this->returnValue(0));
195 195
         $connection->expects($this->once())
196 196
             ->method('transactional')
197
-            ->will($this->returnCallback(function ($callback) use ($connection) {
197
+            ->will($this->returnCallback(function($callback) use ($connection) {
198 198
                 $callback($connection);
199 199
             }));
200 200
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         $resultJob = null;
219 219
         $this->storage->saveJob(
220 220
             $job,
221
-            function (Job $job) use (&$resultJob) {
221
+            function(Job $job) use (&$resultJob) {
222 222
                 $resultJob = $job;
223 223
             }
224 224
         );
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             ->will($this->returnValue(0));
240 240
         $connection->expects($this->once())
241 241
             ->method('transactional')
242
-            ->will($this->returnCallback(function ($callback) use ($connection) {
242
+            ->will($this->returnCallback(function($callback) use ($connection) {
243 243
                 $callback($connection);
244 244
             }));
245 245
         $connection->expects($this->at(1))
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
             ->will($this->returnValue(0));
290 290
         $connection->expects($this->once())
291 291
             ->method('transactional')
292
-            ->will($this->returnCallback(function ($callback) use ($connection) {
292
+            ->will($this->returnCallback(function($callback) use ($connection) {
293 293
                 $callback($connection);
294 294
             }));
295 295
         $connection->expects($this->at(1))
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 
319 319
         $this->storage->saveJob(
320 320
             $job,
321
-            function () {
321
+            function() {
322 322
             }
323 323
         );
324 324
     }
Please login to merge, or discard this patch.
src/Oro/Component/MessageQueue/Tests/Unit/Job/JobRunnerTest.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $result = $jobRunner->runUnique(
41 41
             'owner-id',
42 42
             'job-name',
43
-            function (JobRunner $runner, Job $child) use (&$expRunner, &$expChild) {
43
+            function(JobRunner $runner, Job $child) use (&$expRunner, &$expChild) {
44 44
                 $expRunner = $runner;
45 45
                 $expChild = $child;
46 46
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $jobRunner->runUnique(
83 83
             'owner-id',
84 84
             'job-name',
85
-            function () {
85
+            function() {
86 86
             }
87 87
         );
88 88
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $result = $jobRunner->runUnique(
114 114
             'owner-id',
115 115
             'job-name',
116
-            function () {
116
+            function() {
117 117
             }
118 118
         );
119 119
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $jobRunner->runUnique(
151 151
             'owner-id',
152 152
             'job-name',
153
-            function () {
153
+            function() {
154 154
             }
155 155
         );
156 156
     }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         $jobRunner->runUnique(
188 188
             'owner-id',
189 189
             'job-name',
190
-            function () {
190
+            function() {
191 191
             }
192 192
         );
193 193
     }
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         $jobRunner->runUnique(
224 224
             'owner-id',
225 225
             'job-name',
226
-            function () {
226
+            function() {
227 227
                 return true;
228 228
             }
229 229
         );
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         $jobRunner->runUnique(
261 261
             'owner-id',
262 262
             'job-name',
263
-            function () {
263
+            function() {
264 264
                 return false;
265 265
             }
266 266
         );
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
         $jobRunner->runUnique(
300 300
             'owner-id',
301 301
             'job-name',
302
-            function () {
302
+            function() {
303 303
                 throw new \Exception('test');
304 304
             }
305 305
         );
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
         $jobRunner->runUnique(
338 338
             'owner-id',
339 339
             'job-name',
340
-            function () {
340
+            function() {
341 341
                 return true;
342 342
             }
343 343
         );
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         $jobRunner->runUnique(
367 367
             'owner-id',
368 368
             'job-name',
369
-            function () {
369
+            function() {
370 370
                 return true;
371 371
             }
372 372
         );
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
 
400 400
         $jobRunner->createDelayed(
401 401
             'job-name',
402
-            function (JobRunner $runner, Job $job) use (&$expRunner, &$expJob) {
402
+            function(JobRunner $runner, Job $job) use (&$expRunner, &$expJob) {
403 403
                 $expRunner = $runner;
404 404
                 $expJob = $job;
405 405
 
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 
445 445
         $jobRunner->runDelayed(
446 446
             'job-id',
447
-            function (JobRunner $runner, Job $job) {
447
+            function(JobRunner $runner, Job $job) {
448 448
                 throw new \Exception('test');
449 449
             }
450 450
         );
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
 
472 472
         $jobRunner->runDelayed(
473 473
             'job-id',
474
-            function () {
474
+            function() {
475 475
             }
476 476
         );
477 477
     }
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 
504 504
         $jobRunner->runDelayed(
505 505
             'job-id',
506
-            function (JobRunner $runner, Job $job) use (&$expRunner, &$expJob) {
506
+            function(JobRunner $runner, Job $job) use (&$expRunner, &$expJob) {
507 507
                 $expRunner = $runner;
508 508
                 $expJob = $job;
509 509
 
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 
544 544
         $jobRunner->runDelayed(
545 545
             'job-id',
546
-            function (JobRunner $runner, Job $job) {
546
+            function(JobRunner $runner, Job $job) {
547 547
                 return true;
548 548
             }
549 549
         );
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
 
581 581
         $jobRunner->runDelayed(
582 582
             'job-id',
583
-            function (JobRunner $runner, Job $job) {
583
+            function(JobRunner $runner, Job $job) {
584 584
                 return true;
585 585
             }
586 586
         );
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
 
618 618
         $jobRunner->runDelayed(
619 619
             'job-id',
620
-            function (JobRunner $runner, Job $job) {
620
+            function(JobRunner $runner, Job $job) {
621 621
                 return false;
622 622
             }
623 623
         );
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
 
653 653
         $jobRunner->runDelayed(
654 654
             'job-id',
655
-            function (JobRunner $runner, Job $job) {
655
+            function(JobRunner $runner, Job $job) {
656 656
                 return true;
657 657
             }
658 658
         );
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
         $this->expectExceptionMessage('Cannot run jobs in status stale, id: "11"');
677 677
         $jobRunner->runDelayed(
678 678
             'job-id',
679
-            function () {
679
+            function() {
680 680
                 return true;
681 681
             }
682 682
         );
Please login to merge, or discard this patch.
src/Oro/Component/ExpressionLanguage/Lexer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
             if (preg_match('/[0-9]+(?:\.[0-9]+)?/A', $expression, $match, null, $cursor)) {
70 70
                 // numbers
71
-                $number = (float)$match[0];  // floats
71
+                $number = (float)$match[0]; // floats
72 72
                 if (ctype_digit($match[0]) && $number <= PHP_INT_MAX) {
73 73
                     $number = (int)$match[0]; // integers lower than the maximum
74 74
                 }
Please login to merge, or discard this patch.
src/Oro/Bundle/NavigationBundle/Menu/AclAwareMenuFactoryExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
         }
92 92
 
93 93
         if ($this->skipAccessCheck($options)) {
94
-            $isAllowed = (bool) $this->getOptionValue($options, ['extras', 'show_non_authorized'], false);
94
+            $isAllowed = (bool)$this->getOptionValue($options, ['extras', 'show_non_authorized'], false);
95 95
             $options['extras']['isAllowed'] = $isAllowed;
96 96
 
97 97
             return $options;
Please login to merge, or discard this patch.
src/Oro/Bundle/NavigationBundle/Tests/Behat/Context/FeatureContext.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function clickInShortcutsSearchResults($link)
65 65
     {
66
-        $result = $this->spin(function (FeatureContext $context) use ($link) {
66
+        $result = $this->spin(function(FeatureContext $context) use ($link) {
67 67
             $result = $context->getPage()->find('css', sprintf('li[data-value="%s"] a', $link));
68 68
 
69 69
             if ($result && $result->isVisible()) {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
             $this->waitForAjax();
217 217
             $actualCount++;
218 218
 
219
-            $result = $this->spin(function (FeatureContext $context) use ($actualCount, $em) {
219
+            $result = $this->spin(function(FeatureContext $context) use ($actualCount, $em) {
220 220
                 return $actualCount === $context->getPageTransitionCount($em);
221 221
             });
222 222
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
             $actualUrl = '';
230 230
 
231 231
             $pageEquals = $this->spin(
232
-                function (FeatureContext $context) use ($em, $clickedUrl, &$actualUrl) {
232
+                function(FeatureContext $context) use ($em, $clickedUrl, &$actualUrl) {
233 233
                     $actualUrl = $context->getLastPersistedPage($em)->getUrl();
234 234
 
235 235
                     return $clickedUrl === $actualUrl;
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                 )
246 246
             );
247 247
 
248
-            $result = $this->spin(function (FeatureContext $context) use ($actualTitle) {
248
+            $result = $this->spin(function(FeatureContext $context) use ($actualTitle) {
249 249
                 $lastHistoryLink = $context->getLastHistoryLink();
250 250
                 $this->clickBarsIcon();
251 251
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
         /** @var HistoryItemRepository $repository */
276 276
         $repository = $em->getRepository('OroNavigationBundle:NavigationHistoryItem');
277 277
 
278
-        return array_sum(array_map(function (NavigationHistoryItem $item) use ($em) {
278
+        return array_sum(array_map(function(NavigationHistoryItem $item) use ($em) {
279 279
             $em->detach($item);
280 280
 
281 281
             return $item->getVisitCount();
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
      */
320 320
     public function historyMustLooksLike($tab, TableNode $table)
321 321
     {
322
-        $content = $this->createElement($tab.' Content');
322
+        $content = $this->createElement($tab . ' Content');
323 323
 
324 324
         if (!$content->isVisible()) {
325 325
             $this->chooseQuickMenuTab($tab);
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      */
390 390
     public function tabContentIsEmpty($tab)
391 391
     {
392
-        $content = $this->createElement($tab.' Content');
392
+        $content = $this->createElement($tab . ' Content');
393 393
 
394 394
         if (!$content->isVisible()) {
395 395
             $this->chooseQuickMenuTab($tab);
Please login to merge, or discard this patch.
src/Oro/Bundle/TagBundle/Formatter/TagsTypeFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         $value = (array)$value;
34 34
         $names = array_map(
35
-            function ($tag) {
35
+            function($tag) {
36 36
                 return $tag['name'];
37 37
             },
38 38
             $value
Please login to merge, or discard this patch.
WorkflowBundle/Tests/Unit/Handler/WorkflowNotificationHandlerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     public function testHandle(array $notifications, array $expected)
64 64
     {
65 65
         $expected = array_map(
66
-            function (EmailNotification $notification) {
66
+            function(EmailNotification $notification) {
67 67
                 return new EmailNotificationAdapter(
68 68
                     $this->entity,
69 69
                     $notification,
Please login to merge, or discard this patch.