Skip to content

Commit ea3be77

Browse files
committed
Apply StyleCI patch
1 parent 77341b5 commit ea3be77

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

src/Jenssegers/Mongodb/Eloquent/Builder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ public function raw($expression = null)
160160
return $this->model->newFromBuilder((array) $results);
161161
} // The result is a single object.
162162
elseif (is_array($results) and array_key_exists('_id', $results)) {
163-
164163
return $this->model->newFromBuilder((array) $results);
165164
}
166165

src/Jenssegers/Mongodb/Helpers/EloquentBuilder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77
class EloquentBuilder extends Builder
88
{
99
use QueriesRelationships;
10-
11-
}
10+
}

src/Jenssegers/Mongodb/Helpers/QueriesRelationships.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ public function addHybridHas($relation, $operator = '>=', $count = 1, $boolean =
9696
return $this->whereIn($this->getRelatedConstraintKey($relation), $relatedIds, $boolean, $not);
9797
}
9898

99-
10099
/**
101100
* Returns key we are constraining this parent model's query with
102101
* @param $relation
@@ -138,7 +137,6 @@ protected function getHasCompareKey($relation)
138137
protected function getConstrainedRelatedIds($relations, $operator, $count)
139138
{
140139
$relationCount = array_count_values(array_map(function ($id) {
141-
142140
return (string) $id; // Convert Back ObjectIds to Strings
143141
}, is_array($relations) ? $relations : $relations->flatten()->toArray()));
144142
// Remove unwanted related objects based on the operator and count.
@@ -163,5 +161,4 @@ protected function getConstrainedRelatedIds($relations, $operator, $count)
163161
// All related ids.
164162
return array_keys($relationCount);
165163
}
166-
167-
}
164+
}

tests/config/database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
],
2424
],
2525

26-
];
26+
];

0 commit comments

Comments
 (0)