diff --git a/tests/Bus/BusPendingBatchTest.php b/tests/Bus/BusPendingBatchTest.php index 889b3a5d482d..471330eb8d48 100644 --- a/tests/Bus/BusPendingBatchTest.php +++ b/tests/Bus/BusPendingBatchTest.php @@ -65,9 +65,7 @@ public function test_batch_is_deleted_from_storage_if_exception_thrown_during_ba $container = new Container; - $job = new class - { - }; + $job = new class {}; $pendingBatch = new PendingBatch($container, new Collection([$job])); diff --git a/tests/Pagination/CursorPaginatorLoadMorphCountTest.php b/tests/Pagination/CursorPaginatorLoadMorphCountTest.php index 6e6722f1edd4..4756ceb26662 100644 --- a/tests/Pagination/CursorPaginatorLoadMorphCountTest.php +++ b/tests/Pagination/CursorPaginatorLoadMorphCountTest.php @@ -19,10 +19,7 @@ public function testCollectionLoadMorphCountCanChainOnThePaginator() $items = m::mock(Collection::class); $items->shouldReceive('loadMorphCount')->once()->with('parentable', $relations); - $p = (new class extends AbstractCursorPaginator - { - // - })->setCollection($items); + $p = (new class extends AbstractCursorPaginator {})->setCollection($items); $this->assertSame($p, $p->loadMorphCount('parentable', $relations)); } diff --git a/tests/Pagination/CursorPaginatorLoadMorphTest.php b/tests/Pagination/CursorPaginatorLoadMorphTest.php index b127f21f2cd7..217a8ccf93ed 100644 --- a/tests/Pagination/CursorPaginatorLoadMorphTest.php +++ b/tests/Pagination/CursorPaginatorLoadMorphTest.php @@ -19,10 +19,7 @@ public function testCollectionLoadMorphCanChainOnThePaginator() $items = m::mock(Collection::class); $items->shouldReceive('loadMorph')->once()->with('parentable', $relations); - $p = (new class extends AbstractCursorPaginator - { - // - })->setCollection($items); + $p = (new class extends AbstractCursorPaginator {})->setCollection($items); $this->assertSame($p, $p->loadMorph('parentable', $relations)); } diff --git a/tests/Pagination/PaginatorLoadMorphCountTest.php b/tests/Pagination/PaginatorLoadMorphCountTest.php index c6e06454e451..f0e09d230b1a 100644 --- a/tests/Pagination/PaginatorLoadMorphCountTest.php +++ b/tests/Pagination/PaginatorLoadMorphCountTest.php @@ -19,10 +19,7 @@ public function testCollectionLoadMorphCountCanChainOnThePaginator() $items = m::mock(Collection::class); $items->shouldReceive('loadMorphCount')->once()->with('parentable', $relations); - $p = (new class extends AbstractPaginator - { - // - })->setCollection($items); + $p = (new class extends AbstractPaginator {})->setCollection($items); $this->assertSame($p, $p->loadMorphCount('parentable', $relations)); } diff --git a/tests/Pagination/PaginatorLoadMorphTest.php b/tests/Pagination/PaginatorLoadMorphTest.php index 9ad43219daf5..c7b4c1287ad0 100644 --- a/tests/Pagination/PaginatorLoadMorphTest.php +++ b/tests/Pagination/PaginatorLoadMorphTest.php @@ -19,10 +19,7 @@ public function testCollectionLoadMorphCanChainOnThePaginator() $items = m::mock(Collection::class); $items->shouldReceive('loadMorph')->once()->with('parentable', $relations); - $p = (new class extends AbstractPaginator - { - // - })->setCollection($items); + $p = (new class extends AbstractPaginator {})->setCollection($items); $this->assertSame($p, $p->loadMorph('parentable', $relations)); }