From dcf2efcd15fadf38f9316e37988adb84fba19515 Mon Sep 17 00:00:00 2001 From: Matthew Poulter Date: Tue, 15 Oct 2024 16:58:05 +0200 Subject: [PATCH] Linting --- tests/Fields/FieldTest.php | 2 +- tests/Fields/FlaggedFieldTest.php | 2 +- tests/Fields/IntegerFieldTest.php | 2 +- tests/Fields/NoCastsFieldTest.php | 2 +- tests/Fields/StringFieldTest.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Fields/FieldTest.php b/tests/Fields/FieldTest.php index aac2099..a53adff 100644 --- a/tests/Fields/FieldTest.php +++ b/tests/Fields/FieldTest.php @@ -61,6 +61,6 @@ public function it_can_be_nullable() $this->assertNotContains('required', $this->field->rules); $this->assertContains('nullable', $this->field->rules); - $this->assertFalse($this->field->isRequired(new NovaRequest())); + $this->assertFalse($this->field->isRequired(new NovaRequest)); } } diff --git a/tests/Fields/FlaggedFieldTest.php b/tests/Fields/FlaggedFieldTest.php index c71ec7f..0e93ee9 100644 --- a/tests/Fields/FlaggedFieldTest.php +++ b/tests/Fields/FlaggedFieldTest.php @@ -93,7 +93,7 @@ public function it_resolves_enum_values() /** @test */ public function it_fills_database_with_flagged_enum_value() { - $request = new NovaRequest(); + $request = new NovaRequest; $request->query->add(['enum' => json_encode($this->values)]); $this->field->fill($request, $this->model); diff --git a/tests/Fields/IntegerFieldTest.php b/tests/Fields/IntegerFieldTest.php index 5455191..2f73f2a 100644 --- a/tests/Fields/IntegerFieldTest.php +++ b/tests/Fields/IntegerFieldTest.php @@ -44,7 +44,7 @@ public function it_displays_enum_description() /** @test */ public function it_fills_database_with_enum_value() { - $request = new NovaRequest(); + $request = new NovaRequest; $request->query->add(['enum' => IntegerEnum::Subscriber]); $this->field->fill($request, $this->model); diff --git a/tests/Fields/NoCastsFieldTest.php b/tests/Fields/NoCastsFieldTest.php index 80c3d0b..54a36f9 100644 --- a/tests/Fields/NoCastsFieldTest.php +++ b/tests/Fields/NoCastsFieldTest.php @@ -44,7 +44,7 @@ public function it_displays_enum_description() /** @test */ public function it_fills_database_with_enum_value() { - $request = new NovaRequest(); + $request = new NovaRequest; $request->query->add(['enum' => StringEnum::Subscriber]); $this->field->fill($request, $this->model); diff --git a/tests/Fields/StringFieldTest.php b/tests/Fields/StringFieldTest.php index 76df801..67dad02 100644 --- a/tests/Fields/StringFieldTest.php +++ b/tests/Fields/StringFieldTest.php @@ -44,7 +44,7 @@ public function it_displays_enum_description() /** @test */ public function it_fills_database_with_enum_value() { - $request = new NovaRequest(); + $request = new NovaRequest; $request->query->add(['enum' => StringEnum::Subscriber]); $this->field->fill($request, $this->model);