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 Mar 2, 2023
1 parent f5add6b commit 5b5b659
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions tests/Fakes/Castables/SimpleCastable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Spatie\LaravelData\Tests\Fakes\Castables;

use Spatie\LaravelData\Casts\Cast;
Expand All @@ -7,16 +8,17 @@

class SimpleCastable implements Castable
{
public function __construct(public string $value) {

}
public function __construct(public string $value)
{
}

public static function dataCastUsing(...$arguments): Cast
{
return new class implements Cast {
public function cast(DataProperty $property, mixed $value, array $context): mixed {
return new SimpleCastable($value);
}
};
}
public static function dataCastUsing(...$arguments): Cast
{
return new class () implements Cast {
public function cast(DataProperty $property, mixed $value, array $context): mixed
{
return new SimpleCastable($value);
}
};
}
}

0 comments on commit 5b5b659

Please sign in to comment.