From 17d7176941e6b478505e835b9ed9d51e8849738b Mon Sep 17 00:00:00 2001 From: sinnbeck Date: Wed, 19 Oct 2022 10:51:16 +0000 Subject: [PATCH] Fix styling --- src/Asserts/FormAssert.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Asserts/FormAssert.php b/src/Asserts/FormAssert.php index 05c476a..835580b 100644 --- a/src/Asserts/FormAssert.php +++ b/src/Asserts/FormAssert.php @@ -52,7 +52,7 @@ public function hasAction(string $action): self public function hasMethod(string $method): self { - if (!in_array(strtolower($method), ['get', 'post'])) { + if (! in_array(strtolower($method), ['get', 'post'])) { return $this->hasSpoofMethod($method); } PHPUnit::assertEquals( @@ -64,7 +64,6 @@ public function hasMethod(string $method): self return $this; } - public function hasSpoofMethod(string $type): self { $element = $this->parser->query('input[type="hidden"][name="_method"]');