Commit f81223c4 by Qiang Xue

Merge pull request #98 from creocoder/code-style-fix

ActiveRelation code style fix
parents f3286df3 ddf67f08
...@@ -266,7 +266,7 @@ class ActiveRelation extends ActiveQuery ...@@ -266,7 +266,7 @@ class ActiveRelation extends ActiveQuery
{ {
$attributes = array_keys($this->link); $attributes = array_keys($this->link);
$values = array(); $values = array();
if (count($attributes) ===1) { if (count($attributes) === 1) {
// single key // single key
$attribute = reset($this->link); $attribute = reset($this->link);
foreach ($models as $model) { foreach ($models as $model) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment