Completed
Pull Request — master (#34)
by Eric
35:11
created
src/Component/Resource/Tests/Domain/DomainManagerTest.php 1 patch
Spacing   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             ->method('dispatch')
96 96
             ->with(
97 97
                 $this->identicalTo('lug.'.$name.'.pre_find.'.($action = 'action')),
98
-                $this->callback(function (DomainEvent $event) use ($action) {
98
+                $this->callback(function(DomainEvent $event) use ($action) {
99 99
                     return $event->getResource() === $this->resource
100 100
                         && $event->getObject() === null
101 101
                         && $event->getAction() === 'find.'.$action;
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             ->method('dispatch')
108 108
             ->with(
109 109
                 $this->identicalTo('lug.'.$name.'.post_find.'.$action),
110
-                $this->callback(function (DomainEvent $event) use ($object, $action) {
110
+                $this->callback(function(DomainEvent $event) use ($object, $action) {
111 111
                     return $event->getResource() === $this->resource
112 112
                     && $event->getObject() === $object
113 113
                     && $event->getAction() === 'find.'.$action;
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             ->method('dispatch')
139 139
             ->with(
140 140
                 $this->identicalTo('lug.'.$name.'.pre_find.'.($action = 'action')),
141
-                $this->callback(function (DomainEvent $event) use ($action) {
141
+                $this->callback(function(DomainEvent $event) use ($action) {
142 142
                     return $event->getResource() === $this->resource
143 143
                         && $event->getObject() === null
144 144
                         && $event->getAction() === 'find.'.$action;
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             ->method('dispatch')
154 154
             ->with(
155 155
                 $this->identicalTo('lug.'.$name.'.error_find.'.$action),
156
-                $this->callback(function (DomainEvent $event) use ($action, $statusCode, $message) {
156
+                $this->callback(function(DomainEvent $event) use ($action, $statusCode, $message) {
157 157
                     $result = $event->getResource() === $this->resource
158 158
                         && $event->getObject() === null
159 159
                         && $event->getAction() === 'find.'.$action;
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
             ->method('dispatch')
196 196
             ->with(
197 197
                 $this->identicalTo('lug.'.$name.'.pre_find.'.($action = 'action')),
198
-                $this->callback(function (DomainEvent $event) use ($action) {
198
+                $this->callback(function(DomainEvent $event) use ($action) {
199 199
                     return $event->getResource() === $this->resource
200 200
                     && $event->getObject() === null
201 201
                     && $event->getAction() === 'find.'.$action;
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             ->method('dispatch')
208 208
             ->with(
209 209
                 $this->identicalTo('lug.'.$name.'.error_find.'.$action),
210
-                $this->callback(function (DomainEvent $event) use ($action) {
210
+                $this->callback(function(DomainEvent $event) use ($action) {
211 211
                     $result = $event->getResource() === $this->resource
212 212
                         && $event->getObject() === null
213 213
                         && $event->getAction() === 'find.'.$action;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             ->method('dispatch')
243 243
             ->with(
244 244
                 $this->identicalTo('lug.'.$name.'.pre_'.($createAction = 'create')),
245
-                $this->callback(function (DomainEvent $event) use ($createAction, $object) {
245
+                $this->callback(function(DomainEvent $event) use ($createAction, $object) {
246 246
                     return $event->getResource() === $this->resource
247 247
                         && $event->getObject() === $object
248 248
                         && $event->getAction() === $createAction;
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
             ->method('dispatch')
255 255
             ->with(
256 256
                 $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')),
257
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
257
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
258 258
                     return $event->getResource() === $this->resource
259 259
                         && $event->getObject() === $object
260 260
                         && $event->getAction() === $flushAction;
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
             ->method('dispatch')
267 267
             ->with(
268 268
                 $this->identicalTo('lug.'.$name.'.post_'.$flushAction),
269
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
269
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
270 270
                     return $event->getResource() === $this->resource
271 271
                         && $event->getObject() === $object
272 272
                         && $event->getAction() === $flushAction;
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
             ->method('dispatch')
279 279
             ->with(
280 280
                 $this->identicalTo('lug.'.$name.'.post_'.$createAction),
281
-                $this->callback(function (DomainEvent $event) use ($object, $createAction) {
281
+                $this->callback(function(DomainEvent $event) use ($object, $createAction) {
282 282
                     return $event->getResource() === $this->resource
283 283
                         && $event->getObject() === $object
284 284
                         && $event->getAction() === $createAction;
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             ->method('dispatch')
310 310
             ->with(
311 311
                 $this->identicalTo('lug.'.$name.'.pre_'.($createAction = 'create')),
312
-                $this->callback(function (DomainEvent $event) use ($createAction, $object) {
312
+                $this->callback(function(DomainEvent $event) use ($createAction, $object) {
313 313
                     return $event->getResource() === $this->resource
314 314
                     && $event->getObject() === $object
315 315
                     && $event->getAction() === $createAction;
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
             ->method('dispatch')
322 322
             ->with(
323 323
                 $this->identicalTo('lug.'.$name.'.post_'.$createAction),
324
-                $this->callback(function (DomainEvent $event) use ($object, $createAction) {
324
+                $this->callback(function(DomainEvent $event) use ($object, $createAction) {
325 325
                     return $event->getResource() === $this->resource
326 326
                     && $event->getObject() === $object
327 327
                     && $event->getAction() === $createAction;
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             ->method('dispatch')
354 354
             ->with(
355 355
                 $this->identicalTo('lug.'.$name.'.pre_'.($createAction = 'create')),
356
-                $this->callback(function (DomainEvent $event) use ($createAction, $object) {
356
+                $this->callback(function(DomainEvent $event) use ($createAction, $object) {
357 357
                     return $event->getResource() === $this->resource
358 358
                         && $event->getObject() === $object
359 359
                         && $event->getAction() === $createAction;
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
             ->method('dispatch')
366 366
             ->with(
367 367
                 $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')),
368
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
368
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
369 369
                     return $event->getResource() === $this->resource
370 370
                         && $event->getObject() === $object
371 371
                         && $event->getAction() === $flushAction;
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
             ->method('dispatch')
378 378
             ->with(
379 379
                 $this->identicalTo('lug.'.$name.'.error_'.$flushAction),
380
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
380
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
381 381
                     return $event->getResource() === $this->resource
382 382
                         && $event->getObject() === $object
383 383
                         && $event->getAction() === $flushAction;
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
             ->method('dispatch')
393 393
             ->with(
394 394
                 $this->identicalTo('lug.'.$name.'.error_'.$createAction),
395
-                $this->callback(function (DomainEvent $event) use ($object, $createAction, $statusCode, $message) {
395
+                $this->callback(function(DomainEvent $event) use ($object, $createAction, $statusCode, $message) {
396 396
                     $result = $event->getResource() === $this->resource
397 397
                         && $event->getObject() === $object
398 398
                         && $event->getAction() === $createAction;
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
             ->method('dispatch')
436 436
             ->with(
437 437
                 $this->identicalTo('lug.'.$name.'.pre_'.($createAction = 'create')),
438
-                $this->callback(function (DomainEvent $event) use ($createAction, $object) {
438
+                $this->callback(function(DomainEvent $event) use ($createAction, $object) {
439 439
                     return $event->getResource() === $this->resource
440 440
                     && $event->getObject() === $object
441 441
                     && $event->getAction() === $createAction;
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
             ->method('dispatch')
448 448
             ->with(
449 449
                 $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')),
450
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
450
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
451 451
                     return $event->getResource() === $this->resource
452 452
                     && $event->getObject() === $object
453 453
                     && $event->getAction() === $flushAction;
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
             ->method('dispatch')
460 460
             ->with(
461 461
                 $this->identicalTo('lug.'.$name.'.error_'.$flushAction),
462
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
462
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
463 463
                     return $event->getResource() === $this->resource
464 464
                     && $event->getObject() === $object
465 465
                     && $event->getAction() === $flushAction;
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
             ->method('dispatch')
472 472
             ->with(
473 473
                 $this->identicalTo('lug.'.$name.'.error_'.$createAction),
474
-                $this->callback(function (DomainEvent $event) use ($object, $createAction) {
474
+                $this->callback(function(DomainEvent $event) use ($object, $createAction) {
475 475
                     $result = $event->getResource() === $this->resource
476 476
                         && $event->getObject() === $object
477 477
                         && $event->getAction() === $createAction;
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
             ->method('dispatch')
507 507
             ->with(
508 508
                 $this->identicalTo('lug.'.$name.'.pre_'.($updateAction = 'update')),
509
-                $this->callback(function (DomainEvent $event) use ($updateAction, $object) {
509
+                $this->callback(function(DomainEvent $event) use ($updateAction, $object) {
510 510
                     return $event->getResource() === $this->resource
511 511
                     && $event->getObject() === $object
512 512
                     && $event->getAction() === $updateAction;
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
             ->method('dispatch')
519 519
             ->with(
520 520
                 $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')),
521
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
521
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
522 522
                     return $event->getResource() === $this->resource
523 523
                     && $event->getObject() === $object
524 524
                     && $event->getAction() === $flushAction;
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
             ->method('dispatch')
531 531
             ->with(
532 532
                 $this->identicalTo('lug.'.$name.'.post_'.$flushAction),
533
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
533
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
534 534
                     return $event->getResource() === $this->resource
535 535
                     && $event->getObject() === $object
536 536
                     && $event->getAction() === $flushAction;
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
             ->method('dispatch')
543 543
             ->with(
544 544
                 $this->identicalTo('lug.'.$name.'.post_'.$updateAction),
545
-                $this->callback(function (DomainEvent $event) use ($object, $updateAction) {
545
+                $this->callback(function(DomainEvent $event) use ($object, $updateAction) {
546 546
                     return $event->getResource() === $this->resource
547 547
                     && $event->getObject() === $object
548 548
                     && $event->getAction() === $updateAction;
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
             ->method('dispatch')
574 574
             ->with(
575 575
                 $this->identicalTo('lug.'.$name.'.pre_'.($updateAction = 'update')),
576
-                $this->callback(function (DomainEvent $event) use ($updateAction, $object) {
576
+                $this->callback(function(DomainEvent $event) use ($updateAction, $object) {
577 577
                     return $event->getResource() === $this->resource
578 578
                     && $event->getObject() === $object
579 579
                     && $event->getAction() === $updateAction;
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
             ->method('dispatch')
586 586
             ->with(
587 587
                 $this->identicalTo('lug.'.$name.'.post_'.$updateAction),
588
-                $this->callback(function (DomainEvent $event) use ($object, $updateAction) {
588
+                $this->callback(function(DomainEvent $event) use ($object, $updateAction) {
589 589
                     return $event->getResource() === $this->resource
590 590
                     && $event->getObject() === $object
591 591
                     && $event->getAction() === $updateAction;
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
             ->method('dispatch')
618 618
             ->with(
619 619
                 $this->identicalTo('lug.'.$name.'.pre_'.($updateAction = 'update')),
620
-                $this->callback(function (DomainEvent $event) use ($updateAction, $object) {
620
+                $this->callback(function(DomainEvent $event) use ($updateAction, $object) {
621 621
                     return $event->getResource() === $this->resource
622 622
                     && $event->getObject() === $object
623 623
                     && $event->getAction() === $updateAction;
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
             ->method('dispatch')
630 630
             ->with(
631 631
                 $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')),
632
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
632
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
633 633
                     return $event->getResource() === $this->resource
634 634
                     && $event->getObject() === $object
635 635
                     && $event->getAction() === $flushAction;
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
             ->method('dispatch')
642 642
             ->with(
643 643
                 $this->identicalTo('lug.'.$name.'.error_'.$flushAction),
644
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
644
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
645 645
                     return $event->getResource() === $this->resource
646 646
                     && $event->getObject() === $object
647 647
                     && $event->getAction() === $flushAction;
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
             ->method('dispatch')
657 657
             ->with(
658 658
                 $this->identicalTo('lug.'.$name.'.error_'.$updateAction),
659
-                $this->callback(function (DomainEvent $event) use ($object, $updateAction, $statusCode, $message) {
659
+                $this->callback(function(DomainEvent $event) use ($object, $updateAction, $statusCode, $message) {
660 660
                     $result = $event->getResource() === $this->resource
661 661
                         && $event->getObject() === $object
662 662
                         && $event->getAction() === $updateAction;
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
             ->method('dispatch')
700 700
             ->with(
701 701
                 $this->identicalTo('lug.'.$name.'.pre_'.($updateAction = 'update')),
702
-                $this->callback(function (DomainEvent $event) use ($updateAction, $object) {
702
+                $this->callback(function(DomainEvent $event) use ($updateAction, $object) {
703 703
                     return $event->getResource() === $this->resource
704 704
                     && $event->getObject() === $object
705 705
                     && $event->getAction() === $updateAction;
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
             ->method('dispatch')
712 712
             ->with(
713 713
                 $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')),
714
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
714
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
715 715
                     return $event->getResource() === $this->resource
716 716
                     && $event->getObject() === $object
717 717
                     && $event->getAction() === $flushAction;
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
             ->method('dispatch')
724 724
             ->with(
725 725
                 $this->identicalTo('lug.'.$name.'.error_'.$flushAction),
726
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
726
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
727 727
                     return $event->getResource() === $this->resource
728 728
                     && $event->getObject() === $object
729 729
                     && $event->getAction() === $flushAction;
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
             ->method('dispatch')
736 736
             ->with(
737 737
                 $this->identicalTo('lug.'.$name.'.error_'.$updateAction),
738
-                $this->callback(function (DomainEvent $event) use ($object, $updateAction) {
738
+                $this->callback(function(DomainEvent $event) use ($object, $updateAction) {
739 739
                     $result = $event->getResource() === $this->resource
740 740
                         && $event->getObject() === $object
741 741
                         && $event->getAction() === $updateAction;
@@ -770,7 +770,7 @@  discard block
 block discarded – undo
770 770
             ->method('dispatch')
771 771
             ->with(
772 772
                 $this->identicalTo('lug.'.$name.'.pre_'.($deleteAction = 'delete')),
773
-                $this->callback(function (DomainEvent $event) use ($deleteAction, $object) {
773
+                $this->callback(function(DomainEvent $event) use ($deleteAction, $object) {
774 774
                     return $event->getResource() === $this->resource
775 775
                     && $event->getObject() === $object
776 776
                     && $event->getAction() === $deleteAction;
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
             ->method('dispatch')
783 783
             ->with(
784 784
                 $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')),
785
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
785
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
786 786
                     return $event->getResource() === $this->resource
787 787
                     && $event->getObject() === $object
788 788
                     && $event->getAction() === $flushAction;
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
             ->method('dispatch')
795 795
             ->with(
796 796
                 $this->identicalTo('lug.'.$name.'.post_'.$flushAction),
797
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
797
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
798 798
                     return $event->getResource() === $this->resource
799 799
                     && $event->getObject() === $object
800 800
                     && $event->getAction() === $flushAction;
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
             ->method('dispatch')
807 807
             ->with(
808 808
                 $this->identicalTo('lug.'.$name.'.post_'.$deleteAction),
809
-                $this->callback(function (DomainEvent $event) use ($object, $deleteAction) {
809
+                $this->callback(function(DomainEvent $event) use ($object, $deleteAction) {
810 810
                     return $event->getResource() === $this->resource
811 811
                     && $event->getObject() === $object
812 812
                     && $event->getAction() === $deleteAction;
@@ -837,7 +837,7 @@  discard block
 block discarded – undo
837 837
             ->method('dispatch')
838 838
             ->with(
839 839
                 $this->identicalTo('lug.'.$name.'.pre_'.($deleteAction = 'delete')),
840
-                $this->callback(function (DomainEvent $event) use ($deleteAction, $object) {
840
+                $this->callback(function(DomainEvent $event) use ($deleteAction, $object) {
841 841
                     return $event->getResource() === $this->resource
842 842
                     && $event->getObject() === $object
843 843
                     && $event->getAction() === $deleteAction;
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
             ->method('dispatch')
850 850
             ->with(
851 851
                 $this->identicalTo('lug.'.$name.'.post_'.$deleteAction),
852
-                $this->callback(function (DomainEvent $event) use ($object, $deleteAction) {
852
+                $this->callback(function(DomainEvent $event) use ($object, $deleteAction) {
853 853
                     return $event->getResource() === $this->resource
854 854
                     && $event->getObject() === $object
855 855
                     && $event->getAction() === $deleteAction;
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
             ->method('dispatch')
882 882
             ->with(
883 883
                 $this->identicalTo('lug.'.$name.'.pre_'.($deleteAction = 'delete')),
884
-                $this->callback(function (DomainEvent $event) use ($deleteAction, $object) {
884
+                $this->callback(function(DomainEvent $event) use ($deleteAction, $object) {
885 885
                     return $event->getResource() === $this->resource
886 886
                     && $event->getObject() === $object
887 887
                     && $event->getAction() === $deleteAction;
@@ -893,7 +893,7 @@  discard block
 block discarded – undo
893 893
             ->method('dispatch')
894 894
             ->with(
895 895
                 $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')),
896
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
896
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
897 897
                     return $event->getResource() === $this->resource
898 898
                     && $event->getObject() === $object
899 899
                     && $event->getAction() === $flushAction;
@@ -905,7 +905,7 @@  discard block
 block discarded – undo
905 905
             ->method('dispatch')
906 906
             ->with(
907 907
                 $this->identicalTo('lug.'.$name.'.error_'.$flushAction),
908
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
908
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
909 909
                     return $event->getResource() === $this->resource
910 910
                     && $event->getObject() === $object
911 911
                     && $event->getAction() === $flushAction;
@@ -920,7 +920,7 @@  discard block
 block discarded – undo
920 920
             ->method('dispatch')
921 921
             ->with(
922 922
                 $this->identicalTo('lug.'.$name.'.error_'.$deleteAction),
923
-                $this->callback(function (DomainEvent $event) use ($object, $deleteAction, $statusCode, $message) {
923
+                $this->callback(function(DomainEvent $event) use ($object, $deleteAction, $statusCode, $message) {
924 924
                     $result = $event->getResource() === $this->resource
925 925
                         && $event->getObject() === $object
926 926
                         && $event->getAction() === $deleteAction;
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
             ->method('dispatch')
964 964
             ->with(
965 965
                 $this->identicalTo('lug.'.$name.'.pre_'.($deleteAction = 'delete')),
966
-                $this->callback(function (DomainEvent $event) use ($deleteAction, $object) {
966
+                $this->callback(function(DomainEvent $event) use ($deleteAction, $object) {
967 967
                     return $event->getResource() === $this->resource
968 968
                     && $event->getObject() === $object
969 969
                     && $event->getAction() === $deleteAction;
@@ -975,7 +975,7 @@  discard block
 block discarded – undo
975 975
             ->method('dispatch')
976 976
             ->with(
977 977
                 $this->identicalTo('lug.'.$name.'.pre_'.($flushAction = 'flush')),
978
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
978
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
979 979
                     return $event->getResource() === $this->resource
980 980
                     && $event->getObject() === $object
981 981
                     && $event->getAction() === $flushAction;
@@ -987,7 +987,7 @@  discard block
 block discarded – undo
987 987
             ->method('dispatch')
988 988
             ->with(
989 989
                 $this->identicalTo('lug.'.$name.'.error_'.$flushAction),
990
-                $this->callback(function (DomainEvent $event) use ($flushAction, $object) {
990
+                $this->callback(function(DomainEvent $event) use ($flushAction, $object) {
991 991
                     return $event->getResource() === $this->resource
992 992
                     && $event->getObject() === $object
993 993
                     && $event->getAction() === $flushAction;
@@ -999,7 +999,7 @@  discard block
 block discarded – undo
999 999
             ->method('dispatch')
1000 1000
             ->with(
1001 1001
                 $this->identicalTo('lug.'.$name.'.error_'.$deleteAction),
1002
-                $this->callback(function (DomainEvent $event) use ($object, $deleteAction) {
1002
+                $this->callback(function(DomainEvent $event) use ($object, $deleteAction) {
1003 1003
                     $result = $event->getResource() === $this->resource
1004 1004
                         && $event->getObject() === $object
1005 1005
                         && $event->getAction() === $deleteAction;
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
             ->method('dispatch')
1032 1032
             ->with(
1033 1033
                 $this->identicalTo('lug.'.$name.'.pre_'.($action = 'flush')),
1034
-                $this->callback(function (DomainEvent $event) use ($action, $object) {
1034
+                $this->callback(function(DomainEvent $event) use ($action, $object) {
1035 1035
                     return $event->getResource() === $this->resource
1036 1036
                     && $event->getObject() === $object
1037 1037
                     && $event->getAction() === $action;
@@ -1043,7 +1043,7 @@  discard block
 block discarded – undo
1043 1043
             ->method('dispatch')
1044 1044
             ->with(
1045 1045
                 $this->identicalTo('lug.'.$name.'.post_'.$action),
1046
-                $this->callback(function (DomainEvent $event) use ($action, $object) {
1046
+                $this->callback(function(DomainEvent $event) use ($action, $object) {
1047 1047
                     return $event->getResource() === $this->resource
1048 1048
                     && $event->getObject() === $object
1049 1049
                     && $event->getAction() === $action;
@@ -1069,7 +1069,7 @@  discard block
 block discarded – undo
1069 1069
             ->method('dispatch')
1070 1070
             ->with(
1071 1071
                 $this->identicalTo('lug.'.$name.'.pre_'.($action = 'flush')),
1072
-                $this->callback(function (DomainEvent $event) use ($action) {
1072
+                $this->callback(function(DomainEvent $event) use ($action) {
1073 1073
                     return $event->getResource() === $this->resource
1074 1074
                     && $event->getObject() === null
1075 1075
                     && $event->getAction() === $action;
@@ -1081,7 +1081,7 @@  discard block
 block discarded – undo
1081 1081
             ->method('dispatch')
1082 1082
             ->with(
1083 1083
                 $this->identicalTo('lug.'.$name.'.post_'.$action),
1084
-                $this->callback(function (DomainEvent $event) use ($action) {
1084
+                $this->callback(function(DomainEvent $event) use ($action) {
1085 1085
                     return $event->getResource() === $this->resource
1086 1086
                     && $event->getObject() === null
1087 1087
                     && $event->getAction() === $action;
@@ -1108,7 +1108,7 @@  discard block
 block discarded – undo
1108 1108
             ->method('dispatch')
1109 1109
             ->with(
1110 1110
                 $this->identicalTo('lug.'.$name.'.pre_'.($action = 'flush')),
1111
-                $this->callback(function (DomainEvent $event) use ($action) {
1111
+                $this->callback(function(DomainEvent $event) use ($action) {
1112 1112
                     return $event->getResource() === $this->resource
1113 1113
                     && $event->getObject() === null
1114 1114
                     && $event->getAction() === $action;
@@ -1123,7 +1123,7 @@  discard block
 block discarded – undo
1123 1123
             ->method('dispatch')
1124 1124
             ->with(
1125 1125
                 $this->identicalTo('lug.'.$name.'.error_'.$action),
1126
-                $this->callback(function (DomainEvent $event) use ($action, $statusCode, $message) {
1126
+                $this->callback(function(DomainEvent $event) use ($action, $statusCode, $message) {
1127 1127
                     $result = $event->getResource() === $this->resource
1128 1128
                         && $event->getObject() === null
1129 1129
                         && $event->getAction() === $action;
@@ -1161,7 +1161,7 @@  discard block
 block discarded – undo
1161 1161
             ->method('dispatch')
1162 1162
             ->with(
1163 1163
                 $this->identicalTo('lug.'.$name.'.pre_'.($action = 'flush')),
1164
-                $this->callback(function (DomainEvent $event) use ($action) {
1164
+                $this->callback(function(DomainEvent $event) use ($action) {
1165 1165
                     return $event->getResource() === $this->resource
1166 1166
                         && $event->getObject() === null
1167 1167
                         && $event->getAction() === $action;
@@ -1173,7 +1173,7 @@  discard block
 block discarded – undo
1173 1173
             ->method('dispatch')
1174 1174
             ->with(
1175 1175
                 $this->identicalTo('lug.'.$name.'.error_'.$action),
1176
-                $this->callback(function (DomainEvent $event) use ($action) {
1176
+                $this->callback(function(DomainEvent $event) use ($action) {
1177 1177
                     $result = $event->getResource() === $this->resource
1178 1178
                         && $event->getObject() === null
1179 1179
                         && $event->getAction() === $action;
Please login to merge, or discard this patch.
src/Bundle/ResourceBundle/Behat/Context/AbstractResourceContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     private function getResource($resource, array &$criteria)
55 55
     {
56
-        array_walk_recursive($criteria, function (&$value) {
56
+        array_walk_recursive($criteria, function(&$value) {
57 57
             if ($value === 'yes') {
58 58
                 $value = true;
59 59
             } elseif ($value === 'no') {
Please login to merge, or discard this patch.
src/Bundle/ResourceBundle/Controller/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
243 243
             $data = $bag->get($form->getName(), []);
244 244
         }
245 245
 
246
-        array_walk_recursive($data, function (&$value) {
246
+        array_walk_recursive($data, function(&$value) {
247 247
             if ($value === false) {
248 248
                 $value = 'false';
249 249
             }
Please login to merge, or discard this patch.
Tests/Rest/Action/EventSubscriber/ViewActionSubscriberTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $event
91 91
             ->expects($this->once())
92 92
             ->method('setView')
93
-            ->with($this->callback(function (View $view) use ($form) {
93
+            ->with($this->callback(function(View $view) use ($form) {
94 94
                 return $view->getData() === $form && $view->getStatusCode() === null;
95 95
             }));
96 96
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $event
140 140
             ->expects($this->once())
141 141
             ->method('setView')
142
-            ->with($this->callback(function (View $view) use ($route, $routeParameters) {
142
+            ->with($this->callback(function(View $view) use ($route, $routeParameters) {
143 143
                 return $view->getStatusCode() === Response::HTTP_FOUND
144 144
                     && $view->getRoute() === $route
145 145
                     && $view->getRouteParameters() === $routeParameters;
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $event
170 170
             ->expects($this->once())
171 171
             ->method('setView')
172
-            ->with($this->callback(function (View $view) use ($route) {
172
+            ->with($this->callback(function(View $view) use ($route) {
173 173
                 return $view->getRoute() === $route && $view->getRouteParameters() === [];
174 174
             }));
175 175
 
Please login to merge, or discard this patch.
Tests/Rest/View/EventSubscriber/PagerfantaViewSubscriberTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
             ->method('createRepresentation')
201 201
             ->with(
202 202
                 $this->identicalTo($pagerfanta),
203
-                $this->callback(function ($config) use ($route, $routeParameters, $queryParameters) {
203
+                $this->callback(function($config) use ($route, $routeParameters, $queryParameters) {
204 204
                     return $config instanceof Route
205 205
                         && $config->getName() === $route
206 206
                         && $config->getParameters() === array_merge($routeParameters, $queryParameters);
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
     }
236 236
 
237 237
     /**
238
-     * @return \PHPUnit_Framework_MockObject_MockObject|ViewEvent
238
+     * @return ViewEvent
239 239
      */
240 240
     private function createViewEventMock()
241 241
     {
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/RegisterManagerPassTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             ->method('addMethodCall')
64 64
             ->with(
65 65
                 $this->identicalTo('offsetSet'),
66
-                $this->callback(function (array $args) use ($manager, $resource) {
66
+                $this->callback(function(array $args) use ($manager, $resource) {
67 67
                     return isset($args[0])
68 68
                         && isset($args[1])
69 69
                         && $args[0] === $resource
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-     * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder
54
+     * @return ContainerBuilder
55 55
      */
56 56
     private function createContainerBuilderMock()
57 57
     {
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/RegisterDomainManagerPassTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             ->method('addMethodCall')
64 64
             ->with(
65 65
                 $this->identicalTo('offsetSet'),
66
-                $this->callback(function (array $args) use ($domainManager, $resource) {
66
+                $this->callback(function(array $args) use ($domainManager, $resource) {
67 67
                     return isset($args[0])
68 68
                         && isset($args[1])
69 69
                         && $args[0] === $resource
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-     * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder
54
+     * @return ContainerBuilder
55 55
      */
56 56
     private function createContainerBuilderMock()
57 57
     {
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/RegisterResourcePassTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             ->method('addMethodCall')
73 73
             ->with(
74 74
                 $this->identicalTo('offsetSet'),
75
-                $this->callback(function (array $args) use ($name, $resource) {
75
+                $this->callback(function(array $args) use ($name, $resource) {
76 76
                     return isset($args[0])
77 77
                         && isset($args[1])
78 78
                         && $args[0] === $name
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/ReplaceBooleanExtensionPassTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $definition
60 60
             ->expects($this->once())
61 61
             ->method('addArgument')
62
-            ->with($this->callback(function ($reference) {
62
+            ->with($this->callback(function($reference) {
63 63
                 return $reference instanceof Reference
64 64
                     && (string) $reference === 'lug.resource.routing.parameter_resolver';
65 65
             }))
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-     * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder
54
+     * @return ContainerBuilder
55 55
      */
56 56
     private function createContainerBuilderMock()
57 57
     {
Please login to merge, or discard this patch.