mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-31 02:28:35 +08:00
Fixed code style
This commit is contained in:
@ -525,7 +525,7 @@ trait ActiveRelationTrait
|
|||||||
if (($value = $model[$attribute]) !== null) {
|
if (($value = $model[$attribute]) !== null) {
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
$values = array_merge($values, $value);
|
$values = array_merge($values, $value);
|
||||||
} elseif($value instanceof ArrayExpression && $value->getDimension() === 1) {
|
} elseif ($value instanceof ArrayExpression && $value->getDimension() === 1) {
|
||||||
$values = array_merge($values, $value->getValue());
|
$values = array_merge($values, $value->getValue());
|
||||||
} else {
|
} else {
|
||||||
$values[] = $value;
|
$values[] = $value;
|
||||||
|
|||||||
Reference in New Issue
Block a user