Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Jan 22, 2024
1 parent 174b6e5 commit cad4c6a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/DataCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use ArrayAccess;
use Illuminate\Support\Collection;
use Illuminate\Support\Enumerable;
use Illuminate\Support\LazyCollection;
use Spatie\LaravelData\Concerns\BaseDataCollectable;
use Spatie\LaravelData\Concerns\ContextableData;
use Spatie\LaravelData\Concerns\EnumerableMethods;
Expand Down
3 changes: 1 addition & 2 deletions src/Support/DataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public function __construct(
public readonly bool $isNullable,
public readonly bool $isMixed,
public readonly DataTypeKind $kind,
)
{
) {
}

public function findAcceptedTypeForBaseType(string $class): ?string
Expand Down
1 change: 0 additions & 1 deletion tests/Support/DataParameterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use Spatie\LaravelData\Data;
use Spatie\LaravelData\Support\Creation\CreationContext;
use Spatie\LaravelData\Support\Creation\CreationContextFactory;
use Spatie\LaravelData\Support\DataPropertyType;
use Spatie\LaravelData\Support\DataType;
use Spatie\LaravelData\Tests\Factories\FakeDataStructureFactory;
use Spatie\LaravelData\Tests\Fakes\SimpleData;
Expand Down
2 changes: 1 addition & 1 deletion tests/Support/DataPropertyTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ public function __construct(
expect($type)->lazyType->toBe(RelationalLazy::class);
});

it('will mark an array, collection and paginators as a default type kind when no data collection was specified', function (){
it('will mark an array, collection and paginators as a default type kind when no data collection was specified', function () {
$type = resolveDataType(new class () {
public array $property;
});
Expand Down
5 changes: 2 additions & 3 deletions tests/Support/DataReturnTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Spatie\LaravelData\Contracts\WrappableData;
use Spatie\LaravelData\DataCollection;
use Spatie\LaravelData\Enums\DataTypeKind;
use Spatie\LaravelData\Support\DataReturnType;
use Spatie\LaravelData\Support\DataType;
use Spatie\LaravelData\Support\Factories\DataReturnTypeFactory;
use Spatie\LaravelData\Support\Types\NamedType;
Expand Down Expand Up @@ -127,7 +126,7 @@ public function nullableArray(): ?array
];
});

it('will store return types in the factory as a caching mechanism', function (){
it('will store return types in the factory as a caching mechanism', function () {
$factory = app(DataReturnTypeFactory::class);

$reflection = new ReflectionMethod(\TestReturnTypeSubject::class, 'array');
Expand All @@ -139,7 +138,7 @@ public function nullableArray(): ?array
expect(spl_object_id($firstBuild))->toBe(spl_object_id($secondBuild));
});

it('will cache nullable and non nullable return types separately', function (){
it('will cache nullable and non nullable return types separately', function () {
$factory = app(DataReturnTypeFactory::class);

$firstReflection = new ReflectionMethod(\TestReturnTypeSubject::class, 'array');
Expand Down

0 comments on commit cad4c6a

Please sign in to comment.