Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Mar 13, 2023
1 parent 5ad34f3 commit 1b52a87
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 19 deletions.
4 changes: 1 addition & 3 deletions tests/Bus/BusPendingBatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]));

Expand Down
5 changes: 1 addition & 4 deletions tests/Pagination/CursorPaginatorLoadMorphCountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
5 changes: 1 addition & 4 deletions tests/Pagination/CursorPaginatorLoadMorphTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
5 changes: 1 addition & 4 deletions tests/Pagination/PaginatorLoadMorphCountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
5 changes: 1 addition & 4 deletions tests/Pagination/PaginatorLoadMorphTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 1b52a87

Please sign in to comment.