| @@ 401-405 (lines=5) @@ | ||
| 398 | $this->rules = $rules; | |
| 399 | } | |
| 400 | ||
| 401 |         if (is_string($rules)) { | |
| 402 |             $rules = array_filter(explode('|', "{$this->rules}|$rules")); | |
| 403 | ||
| 404 |             $this->rules = implode('|', $rules); | |
| 405 | } | |
| 406 | ||
| 407 |         if (is_array($rules)) { | |
| 408 |             $thisRuleArr = array_filter(explode('|', $this->rules)); | |
| @@ 407-411 (lines=5) @@ | ||
| 404 |             $this->rules = implode('|', $rules); | |
| 405 | } | |
| 406 | ||
| 407 |         if (is_array($rules)) { | |
| 408 |             $thisRuleArr = array_filter(explode('|', $this->rules)); | |
| 409 | ||
| 410 | $this->rules = array_merge($thisRuleArr, $this->rules); | |
| 411 | } | |
| 412 | ||
| 413 | $this->validationMessages = $messages; | |
| 414 | ||