File tree Expand file tree Collapse file tree 5 files changed +5
-19
lines changed Expand file tree Collapse file tree 5 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ public function test_batch_is_deleted_from_storage_if_exception_thrown_during_ba
65
65
66
66
$ container = new Container ;
67
67
68
- $ job = new class
69
- {
70
- };
68
+ $ job = new class {};
71
69
72
70
$ pendingBatch = new PendingBatch ($ container , new Collection ([$ job ]));
73
71
Original file line number Diff line number Diff line change @@ -19,10 +19,7 @@ public function testCollectionLoadMorphCountCanChainOnThePaginator()
19
19
$ items = m::mock (Collection::class);
20
20
$ items ->shouldReceive ('loadMorphCount ' )->once ()->with ('parentable ' , $ relations );
21
21
22
- $ p = (new class extends AbstractCursorPaginator
23
- {
24
- //
25
- })->setCollection ($ items );
22
+ $ p = (new class extends AbstractCursorPaginator {})->setCollection ($ items );
26
23
27
24
$ this ->assertSame ($ p , $ p ->loadMorphCount ('parentable ' , $ relations ));
28
25
}
Original file line number Diff line number Diff line change @@ -19,10 +19,7 @@ public function testCollectionLoadMorphCanChainOnThePaginator()
19
19
$ items = m::mock (Collection::class);
20
20
$ items ->shouldReceive ('loadMorph ' )->once ()->with ('parentable ' , $ relations );
21
21
22
- $ p = (new class extends AbstractCursorPaginator
23
- {
24
- //
25
- })->setCollection ($ items );
22
+ $ p = (new class extends AbstractCursorPaginator {})->setCollection ($ items );
26
23
27
24
$ this ->assertSame ($ p , $ p ->loadMorph ('parentable ' , $ relations ));
28
25
}
Original file line number Diff line number Diff line change @@ -19,10 +19,7 @@ public function testCollectionLoadMorphCountCanChainOnThePaginator()
19
19
$ items = m::mock (Collection::class);
20
20
$ items ->shouldReceive ('loadMorphCount ' )->once ()->with ('parentable ' , $ relations );
21
21
22
- $ p = (new class extends AbstractPaginator
23
- {
24
- //
25
- })->setCollection ($ items );
22
+ $ p = (new class extends AbstractPaginator {})->setCollection ($ items );
26
23
27
24
$ this ->assertSame ($ p , $ p ->loadMorphCount ('parentable ' , $ relations ));
28
25
}
Original file line number Diff line number Diff line change @@ -19,10 +19,7 @@ public function testCollectionLoadMorphCanChainOnThePaginator()
19
19
$ items = m::mock (Collection::class);
20
20
$ items ->shouldReceive ('loadMorph ' )->once ()->with ('parentable ' , $ relations );
21
21
22
- $ p = (new class extends AbstractPaginator
23
- {
24
- //
25
- })->setCollection ($ items );
22
+ $ p = (new class extends AbstractPaginator {})->setCollection ($ items );
26
23
27
24
$ this ->assertSame ($ p , $ p ->loadMorph ('parentable ' , $ relations ));
28
25
}
You can’t perform that action at this time.
0 commit comments