Skip to content

Commit 77341b5

Browse files
committed
Styleci
1 parent 58f4af0 commit 77341b5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Jenssegers/Mongodb/Eloquent/Builder.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,11 @@ public function raw($expression = null)
157157
elseif ($results instanceof BSONDocument) {
158158
$results = $results->getArrayCopy();
159159

160-
161-
return $this->model->newFromBuilder((array)$results);
160+
return $this->model->newFromBuilder((array) $results);
162161
} // The result is a single object.
163162
elseif (is_array($results) and array_key_exists('_id', $results)) {
164163

165-
return $this->model->newFromBuilder((array)$results);
164+
return $this->model->newFromBuilder((array) $results);
166165
}
167166

168167
return $results;

src/Jenssegers/Mongodb/Helpers/QueriesRelationships.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function getConstrainedRelatedIds($relations, $operator, $count)
139139
{
140140
$relationCount = array_count_values(array_map(function ($id) {
141141

142-
return (string)$id; // Convert Back ObjectIds to Strings
142+
return (string) $id; // Convert Back ObjectIds to Strings
143143
}, is_array($relations) ? $relations : $relations->flatten()->toArray()));
144144
// Remove unwanted related objects based on the operator and count.
145145
$relationCount = array_filter($relationCount, function ($counted) use ($count, $operator) {

0 commit comments

Comments
 (0)