From fb065e5cb44cb53652f3faf45e3f3a01bb85a140 Mon Sep 17 00:00:00 2001 From: Song Date: Fri, 13 Apr 2018 06:53:06 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Form/Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/Field.php b/src/Form/Field.php index d2d54064c8..98c7147142 100644 --- a/src/Form/Field.php +++ b/src/Form/Field.php @@ -402,7 +402,7 @@ public function rules($rules = null, $messages = []) $thisRuleArr = array_filter(explode('|', $this->rules)); $this->rules = array_merge($thisRuleArr, explode('|', $this->rules)); - } else if (is_string($rules)) { + } elseif (is_string($rules)) { $rules = array_filter(explode('|', "{$this->rules}|$rules")); $this->rules = implode('|', $rules);