Skip to content

Commit

Permalink
Merge pull request #1908 from z-song/analysis-zD4xrb
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
z-song authored Apr 13, 2018
2 parents 90310f9 + fb065e5 commit babd3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit babd3d5

Please sign in to comment.