Commit ea3be777 authored by Eric Tucker's avatar Eric Tucker

Apply StyleCI patch

parent 77341b55
......@@ -160,7 +160,6 @@ class Builder extends EloquentBuilder
return $this->model->newFromBuilder((array) $results);
} // The result is a single object.
elseif (is_array($results) and array_key_exists('_id', $results)) {
return $this->model->newFromBuilder((array) $results);
}
......
......@@ -7,5 +7,4 @@ use Illuminate\Database\Eloquent\Builder;
class EloquentBuilder extends Builder
{
use QueriesRelationships;
}
\ No newline at end of file
}
......@@ -96,7 +96,6 @@ trait QueriesRelationships
return $this->whereIn($this->getRelatedConstraintKey($relation), $relatedIds, $boolean, $not);
}
/**
* Returns key we are constraining this parent model's query with
* @param $relation
......@@ -138,7 +137,6 @@ trait QueriesRelationships
protected function getConstrainedRelatedIds($relations, $operator, $count)
{
$relationCount = array_count_values(array_map(function ($id) {
return (string) $id; // Convert Back ObjectIds to Strings
}, is_array($relations) ? $relations : $relations->flatten()->toArray()));
// Remove unwanted related objects based on the operator and count.
......@@ -163,5 +161,4 @@ trait QueriesRelationships
// All related ids.
return array_keys($relationCount);
}
}
\ No newline at end of file
}
......@@ -23,4 +23,4 @@ return [
],
],
];
\ No newline at end of file
];
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