|
@@ -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
|
|
Please login to merge, or discard this patch.