diff --git a/tests/_pages/ContactPage.php b/tests/_pages/ContactPage.php index bc80269..05a0146 100644 --- a/tests/_pages/ContactPage.php +++ b/tests/_pages/ContactPage.php @@ -14,9 +14,9 @@ class ContactPage extends BasePage public function submit(array $contactData) { foreach ($contactData as $field => $value) { - $inputType = ($field == 'body') ? 'textarea' : 'input'; - $this->guy->fillField($inputType.'[name="ContactForm[' . $field . ']"]', $value); + $inputType = $field === 'body' ? 'textarea' : 'input'; + $this->guy->fillField($inputType . '[name="ContactForm[' . $field . ']"]', $value); } - $this->guy->click('Submit','#contact-form'); + $this->guy->click('Submit', '#contact-form'); } }