mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Removed redundant code.
This commit is contained in:
@ -160,10 +160,8 @@ class Model extends Component implements \IteratorAggregate, \ArrayAccess
|
||||
{
|
||||
$attributes = array();
|
||||
foreach ($this->getActiveValidators() as $validator) {
|
||||
if ($validator->isActive('default')) {
|
||||
foreach ($validator->attributes as $name) {
|
||||
$attributes[$name] = true;
|
||||
}
|
||||
foreach ($validator->attributes as $name) {
|
||||
$attributes[$name] = true;
|
||||
}
|
||||
}
|
||||
return array(
|
||||
|
Reference in New Issue
Block a user