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 Oct 28, 2021
1 parent 8384050 commit fe5f394
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Spatie\LaravelData\Tests\Resolvers;

use ReflectionProperty;
use Spatie\LaravelData\Attributes\Validation\BooleanType;
use Spatie\LaravelData\Attributes\Validation\Max;
use Spatie\LaravelData\Attributes\Validation\RequiredWith;
use Spatie\LaravelData\Attributes\Validation\Rule;
Expand Down
13 changes: 6 additions & 7 deletions tests/RuleInferrers/RequiredRuleInferrerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
use Spatie\LaravelData\RuleInferrers\RequiredRuleInferrer;
use Spatie\LaravelData\Support\DataClass;
use Spatie\LaravelData\Support\DataProperty;
use Spatie\LaravelData\Tests\Factories\DataPropertyBlueprintFactory;
use Spatie\LaravelData\Tests\TestCase;

class RequiredRuleInferrerTest extends TestCase
{
private RequiredRuleInferrer $inferrer;

public function setUp() : void
public function setUp(): void
{
parent::setUp();

Expand All @@ -25,7 +24,7 @@ public function setUp() : void
/** @test */
public function it_wont_add_a_required_rule_when_a_property_is_non_nullable()
{
$dataProperty = $this->getProperty(new class extends Data{
$dataProperty = $this->getProperty(new class() extends Data {
public string $string;
});

Expand All @@ -37,7 +36,7 @@ public function it_wont_add_a_required_rule_when_a_property_is_non_nullable()
/** @test */
public function it_wont_add_a_required_rule_when_a_property_is_nullable()
{
$dataProperty = $this->getProperty(new class extends Data{
$dataProperty = $this->getProperty(new class() extends Data {
public ?string $string;
});

Expand All @@ -49,7 +48,7 @@ public function it_wont_add_a_required_rule_when_a_property_is_nullable()
/** @test */
public function it_wont_add_a_required_rule_when_a_property_already_contains_a_required_rule()
{
$dataProperty = $this->getProperty(new class extends Data{
$dataProperty = $this->getProperty(new class() extends Data {
public string $string;
});

Expand All @@ -61,7 +60,7 @@ public function it_wont_add_a_required_rule_when_a_property_already_contains_a_r
/** @test */
public function it_wont_add_a_required_rule_when_a_property_already_contains_a_required_object_rule()
{
$dataProperty = $this->getProperty(new class extends Data{
$dataProperty = $this->getProperty(new class() extends Data {
public string $string;
});

Expand All @@ -73,7 +72,7 @@ public function it_wont_add_a_required_rule_when_a_property_already_contains_a_r
/** @test */
public function it_wont_add_a_required_rule_when_a_property_already_contains_a_boolean_rule()
{
$dataProperty = $this->getProperty(new class extends Data{
$dataProperty = $this->getProperty(new class() extends Data {
public string $string;
});

Expand Down

0 comments on commit fe5f394

Please sign in to comment.