File tree 5 files changed +7
-10
lines changed
tests/Unit/Infrastructure/Messenger 5 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ class Paginator implements PaginatorInterface
28
28
*/
29
29
public function __construct (
30
30
private readonly OrmPaginator $ ormPaginator ,
31
- )
32
- {
31
+ ) {
33
32
$ query = $ this ->ormPaginator ->getQuery ();
34
33
$ firstResult = $ query ->getFirstResult ();
35
34
$ maxResults = $ query ->getMaxResults ();
Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ public function collect(): Collection
65
65
public function paginate (
66
66
int $ itemsPerPage ,
67
67
int $ currentPage = 1
68
- ): Paginator
69
- {
68
+ ): Paginator {
70
69
$ repository = $ this ->filter (
71
70
function (QueryBuilder $ queryBuilder ) use (
72
- $ itemsPerPage , $ currentPage
71
+ $ itemsPerPage ,
72
+ $ currentPage
73
73
) {
74
74
$ queryBuilder
75
75
->setFirstResult ($ itemsPerPage * ($ currentPage - 1 ))->setMaxResults ($ itemsPerPage );
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ trait DispatchableTrait
24
24
/**
25
25
* @see GeekCell\Ddd\Contracts\Core\Dispatchable
26
26
*/
27
- public function dispatch (object $ event )
27
+ public function dispatch (object $ event ): void
28
28
{
29
29
Assertion::isInstanceOf ($ event , DomainEvent::class);
30
30
$ this ->getEventDispatcher ()->dispatch ($ event );
Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ public function testDispatch(): void
50
50
private function createMessageBus (
51
51
string $ type ,
52
52
callable $ handler
53
- ): MessageBus
54
- {
53
+ ): MessageBus {
55
54
return new MessageBus ([
56
55
new HandleMessageMiddleware (new HandlersLocator ([
57
56
$ type => [$ handler ],
Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ public function testDispatch(): void
50
50
private function createMessageBus (
51
51
string $ type ,
52
52
callable $ handler
53
- ): MessageBus
54
- {
53
+ ): MessageBus {
55
54
return new MessageBus ([
56
55
new HandleMessageMiddleware (new HandlersLocator ([
57
56
$ type => [$ handler ],
You can’t perform that action at this time.
0 commit comments