Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Nov 2, 2021
1 parent 4c72103 commit 5ab5700
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,14 +618,14 @@ public function it_can_create_a_data_object_from_a_model()
/** @test */
public function it_can_add_the_with_data_trait_to_a_request()
{
$formRequest = new class extends FormRequest{
$formRequest = new class() extends FormRequest {
use WithData;

public string $dataClass = SimpleData::class;
};

$formRequest->replace([
'string' => 'Hello World'
'string' => 'Hello World',
]);

$data = $formRequest->getData();
Expand All @@ -636,14 +636,14 @@ public function it_can_add_the_with_data_trait_to_a_request()
/** @test */
public function it_can_add_the_with_data_trait_to_a_model()
{
$model = new class extends Model {
$model = new class() extends Model {
use WithData;

protected string $dataClass = SimpleData::class;
};

$model->fill([
'string' => 'Hello World'
'string' => 'Hello World',
]);

$data = $model->getData();
Expand All @@ -654,13 +654,13 @@ public function it_can_add_the_with_data_trait_to_a_model()
/** @test */
public function it_can_define_the_with_data_trait_data_class_by_method()
{
$arrayable = new class implements Arrayable {
$arrayable = new class() implements Arrayable {
use WithData;

public function toArray()
{
return [
'string' => 'Hello World'
'string' => 'Hello World',
];
}

Expand Down

0 comments on commit 5ab5700

Please sign in to comment.