Commit f86ba509 authored by pi0's avatar pi0

Style CI

parent e2322b1f
...@@ -168,7 +168,7 @@ class Builder extends EloquentBuilder ...@@ -168,7 +168,7 @@ class Builder extends EloquentBuilder
// Get the number of related objects for each possible parent. // Get the number of related objects for each possible parent.
$relationCount = array_count_values(array_map(function ($id) { $relationCount = array_count_values(array_map(function ($id) {
return (string)$id; // Convert Back ObjectIds to Strings return (string) $id; // Convert Back ObjectIds to Strings
}, $query->pluck($relation->getHasCompareKey()))); }, $query->pluck($relation->getHasCompareKey())));
// Remove unwanted related objects based on the operator and count. // Remove unwanted related objects based on the operator and count.
......
...@@ -578,7 +578,7 @@ class Builder extends BaseBuilder ...@@ -578,7 +578,7 @@ class Builder extends BaseBuilder
{ {
$results = $this->get(is_null($key) ? [$column] : [$column, $key]); $results = $this->get(is_null($key) ? [$column] : [$column, $key]);
return $this->use_collection?$results->pluck($column, $key): Arr::pluck($results,$column,$key); return $this->use_collection ? $results->pluck($column, $key) : Arr::pluck($results,$column,$key);
} }
/** /**
......
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