Completed
Push — master ( d4b9f4...509ee0 )
by Sidney
04:54
created
AtLeastValidator.php 1 patch
Spacing   +3 added lines, -3 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) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         foreach ($attributes as $attributeName) {
97 97
             $value = $model->$attributeName;
98
-            $attributesListLabels[] = '"' . $model->getAttributeLabel($attributeName). '"';
98
+            $attributesListLabels[] = '"' . $model->getAttributeLabel($attributeName) . '"';
99 99
             $chosen += !empty($value) ? 1 : 0;
100 100
         }
101 101
 
@@ -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.