Skip to content

Commit ba86fce

Browse files
committed
Add mockery to composer.json
1 parent f249b3b commit ba86fce

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ before_script:
1818
- mysql -e 'create database unittest;'
1919
- composer self-update
2020
- composer require satooshi/php-coveralls:dev-master
21-
- composer require mockery/mockery:dev-master
2221
- composer install --dev --no-interaction
2322

2423
script:

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
},
1818
"require-dev": {
1919
"illuminate/cache": "4.1.x",
20-
"illuminate/auth": "4.1.x"
20+
"illuminate/auth": "4.1.x",
21+
"mockery/mockery": "*"
2122
},
2223
"autoload": {
2324
"psr-0": {

src/Jenssegers/Mongodb/Relations/EmbedsMany.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ public function get()
142142
public function find(array $ids)
143143
{
144144
$documents = $this->getEmbeddedRecords();
145+
145146
$primaryKey = $this->related->getKeyName();
146147

147-
$documents = array_filter($documents, function ($document) use($primaryKey, $ids) {
148+
$documents = array_filter($documents, function ($document) use ($primaryKey, $ids)
149+
{
148150
return in_array($document[$primaryKey], $ids);
149151
});
150152

0 commit comments

Comments
 (0)