Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
n1crack authored and github-actions[bot] committed Feb 6, 2024
1 parent fb85558 commit d9cc70e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions src/SubsetCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

use Illuminate\Support\Collection;


class SubsetCollection extends Collection
{

}


14 changes: 7 additions & 7 deletions tests/SubsetFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Ozdemir\SubsetFinder\SubsetCollection;
use Ozdemir\SubsetFinder\SubsetFinder;

it('can find subsets in a collection', function () {
it('can find subsets in a collection', function() {
$collection = collect([
["id" => 1, "quantity" => 11, "price" => 15],
["id" => 2, "quantity" => 6, "price" => 5],
Expand Down Expand Up @@ -40,7 +40,7 @@
]);
});

it('can find subsets in a collection with different field names', function () {
it('can find subsets in a collection with different field names', function() {
$collection = collect([
["name" => 1, "amount" => 11, "price" => 15],
["name" => 2, "amount" => 6, "price" => 5],
Expand All @@ -66,7 +66,7 @@
]);
});

it('returns blank if it doesnt find anything', function () {
it('returns blank if it doesnt find anything', function() {
$collection = collect([
["id" => 1, "quantity" => 11, "price" => 15],
["id" => 2, "quantity" => 6, "price" => 5],
Expand All @@ -90,7 +90,7 @@
->and($subsetter->getRemaining()->toArray())->toBe($collection->toArray());
});

it('can cover all items in the collection ', function () {
it('can cover all items in the collection ', function() {
$collection = collect([
["id" => 1, "quantity" => 11, "price" => 15],
["id" => 2, "quantity" => 6, "price" => 5],
Expand All @@ -117,7 +117,7 @@
->and($subsetter->getRemaining()->toArray())->toBe([]);
});

it('can have multiple items from the collection to look up', function () {
it('can have multiple items from the collection to look up', function() {
$collection = collect([
["id" => 1, "quantity" => 11, "price" => 15],
["id" => 2, "quantity" => 6, "price" => 5],
Expand All @@ -142,7 +142,7 @@
->and($subsetter->getRemaining()->toArray())->toBe([]);
});

it('can have a single item in the setCollections ', function () {
it('can have a single item in the setCollections ', function() {
$collection = collect([
["id" => 1, "quantity" => 11, "price" => 15],
["id" => 2, "quantity" => 6, "price" => 5],
Expand Down Expand Up @@ -177,7 +177,7 @@
});


it('can get the subsets with large number of sets', function () {
it('can get the subsets with large number of sets', function() {
$collection = collect([
["id" => 1, "quantity" => 2500, "price" => 15],
["id" => 2, "quantity" => 2000, "price" => 5],
Expand Down

0 comments on commit d9cc70e

Please sign in to comment.