Completed
Pull Request — master (#6)
by
unknown
05:50
created
AtLeastValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         parent::init();
78 78
         if ($this->in === null) {
79 79
             throw new InvalidConfigException('The `in` parameter is required.');
80
-        } elseif (! is_array($this->in) && count(preg_split('/\s*,\s*/', $this->in, -1, PREG_SPLIT_NO_EMPTY)) <= 1) {
80
+        } elseif (!is_array($this->in) && count(preg_split('/\s*,\s*/', $this->in, -1, PREG_SPLIT_NO_EMPTY)) <= 1) {
81 81
             throw new InvalidConfigException('The `in` parameter must have at least 2 attributes.');
82 82
         }
83 83
         if ($this->message === null) {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     public function clientValidateAttribute($model, $attribute, $view)
117 117
     {
118 118
         $attributes = is_array($this->in) ? $this->in : preg_split('/\s*,\s*/', $this->in, -1, PREG_SPLIT_NO_EMPTY);
119
-        $attributes = array_map('strtolower',$attributes); // yii lowercases attributes
119
+        $attributes = array_map('strtolower', $attributes); // yii lowercases attributes
120 120
         $attributesJson = json_encode($attributes);
121 121
 
122 122
         $attributesLabels = [];
Please login to merge, or discard this patch.