This repository was archived by the owner on Oct 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +7
-10
lines changed
tests/Unit/Infrastructure/Messenger Expand file tree Collapse file tree 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
2828 */
2929 public function __construct (
3030 private readonly OrmPaginator $ ormPaginator ,
31- )
32- {
31+ ) {
3332 $ query = $ this ->ormPaginator ->getQuery ();
3433 $ firstResult = $ query ->getFirstResult ();
3534 $ maxResults = $ query ->getMaxResults ();
Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ public function collect(): Collection
6565 public function paginate (
6666 int $ itemsPerPage ,
6767 int $ currentPage = 1
68- ): Paginator
69- {
68+ ): Paginator {
7069 $ repository = $ this ->filter (
7170 function (QueryBuilder $ queryBuilder ) use (
72- $ itemsPerPage , $ currentPage
71+ $ itemsPerPage ,
72+ $ currentPage
7373 ) {
7474 $ queryBuilder
7575 ->setFirstResult ($ itemsPerPage * ($ currentPage - 1 ))->setMaxResults ($ itemsPerPage );
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ trait DispatchableTrait
2424 /**
2525 * @see GeekCell\Ddd\Contracts\Core\Dispatchable
2626 */
27- public function dispatch (object $ event )
27+ public function dispatch (object $ event ): void
2828 {
2929 Assertion::isInstanceOf ($ event , DomainEvent::class);
3030 $ this ->getEventDispatcher ()->dispatch ($ event );
Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ public function testDispatch(): void
5050 private function createMessageBus (
5151 string $ type ,
5252 callable $ handler
53- ): MessageBus
54- {
53+ ): MessageBus {
5554 return new MessageBus ([
5655 new HandleMessageMiddleware (new HandlersLocator ([
5756 $ type => [$ handler ],
Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ public function testDispatch(): void
5050 private function createMessageBus (
5151 string $ type ,
5252 callable $ handler
53- ): MessageBus
54- {
53+ ): MessageBus {
5554 return new MessageBus ([
5655 new HandleMessageMiddleware (new HandlersLocator ([
5756 $ type => [$ handler ],
You can’t perform that action at this time.
0 commit comments