Skip to content

Commit cf7d7ae

Browse files
committed
Fix CodeStyle
fix #798
1 parent 37398d2 commit cf7d7ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Jenssegers/Mongodb/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ public function __call($method, $parameters)
4949
$query = [];
5050

5151
// Convert the query paramters to a json string.
52-
array_walk_recursive($parameters, function (&$item, $key){
52+
array_walk_recursive($parameters, function (&$item, $key) {
5353
if ($item instanceof \MongoDB\BSON\ObjectID) {
5454
$item = (string) $item;
5555
}
5656
});
57-
57+
5858
foreach ($parameters as $parameter) {
5959
try {
6060
$query[] = json_encode($parameter);

tests/CollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testExecuteMethodCall()
2626
$connection->expects($this->once())->method('logging')->willReturn(true);
2727
$connection->expects($this->once())->method('getElapsedTime')->willReturn($time);
2828
$connection->expects($this->once())->method('logQuery')->with($queryString, [], $time);
29-
29+
3030
$collection = new Collection($connection, $mongoCollection);
3131

3232
$this->assertEquals($return, $collection->findOne($where));

0 commit comments

Comments
 (0)