mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 01:27:20 +08:00
CS fix.
This commit is contained in:
@ -14,7 +14,7 @@ class ContactPage extends BasePage
|
||||
public function submit(array $contactData)
|
||||
{
|
||||
foreach ($contactData as $field => $value) {
|
||||
$inputType = ($field == 'body') ? 'textarea' : 'input';
|
||||
$inputType = $field === 'body' ? 'textarea' : 'input';
|
||||
$this->guy->fillField($inputType . '[name="ContactForm[' . $field . ']"]', $value);
|
||||
}
|
||||
$this->guy->click('Submit', '#contact-form');
|
||||
|
||||
Reference in New Issue
Block a user