Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and actions-user committed Aug 25, 2021
1 parent e7e1a2a commit b42a5de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function it_can_disable_excluding_data_dynamically_from_the_request()
/** @test */
public function it_can_get_the_data_object_without_transforming()
{
$data = new class($dataObject = new SimpleData('Test'), $dataCollection = SimpleData::collection([new SimpleData('A'), new SimpleData('B'), ]), Lazy::create(fn () => new SimpleData('Lazy')), 'Test', $transformable = new DateTime('16 may 1994'),) extends Data {
$data = new class($dataObject = new SimpleData('Test'), $dataCollection = SimpleData::collection([new SimpleData('A'), new SimpleData('B'), ]), Lazy::create(fn () => new SimpleData('Lazy')), 'Test', $transformable = new DateTime('16 may 1994'), ) extends Data {
public function __construct(
public SimpleData $data,
public DataCollection $dataCollection,
Expand Down
3 changes: 1 addition & 2 deletions tests/Resolvers/DataFromSomethingResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Database\Eloquent\Model;
use PHPUnit\Util\Exception;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\Lazy;
use Spatie\LaravelData\Tests\Fakes\DummyDto;
use Spatie\LaravelData\Tests\Fakes\DummyModel;
use Spatie\LaravelData\Tests\TestCase;
Expand Down Expand Up @@ -98,7 +97,7 @@ public function __construct(public string $string)

public static function fromModel(Model $arrayable)
{
throw new Exception("Cannot be called");
throw new Exception("Cannot be called");
}

public static function fromDummyModel(DummyModel $model)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function it_can_covert_a_data_object_to_typescript()
{
$config = TypeScriptTransformerConfig::create();

$data = new class(null, 42, true, 'Hello world', 3.14, ['the', 'meaning', 'of', 'life'], Lazy::create(fn () => 'Lazy'), SimpleData::from('Simple data'), SimpleData::collection([]), ) extends Data {
$data = new class(null, 42, true, 'Hello world', 3.14, ['the', 'meaning', 'of', 'life'], Lazy::create(fn () => 'Lazy'), SimpleData::from('Simple data'), SimpleData::collection([]),) extends Data {
public function __construct(
public null | int $nullable,
public int $int,
Expand Down

0 comments on commit b42a5de

Please sign in to comment.