@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | public function update($collection, array $criteria, array $updates, $multiple = false) |
58 | 58 | { |
59 | - return $this->onMatch($collection, $criteria, function ($document) use ($updates) { |
|
59 | + return $this->onMatch($collection, $criteria, function($document) use ($updates) { |
|
60 | 60 | $document = array_merge($document, $updates); |
61 | 61 | |
62 | 62 | return $this->insert($document); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | public function remove($collection, array $criteria, $multiple = false) |
67 | 67 | { |
68 | - return $this->onMatch($collection, $criteria, function ($document, $path) { |
|
68 | + return $this->onMatch($collection, $criteria, function($document, $path) { |
|
69 | 69 | return $this->filesystem->delete($path); |
70 | 70 | }); |
71 | 71 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | { |
75 | 75 | $results = []; |
76 | 76 | |
77 | - $this->onMatch($collection, $criteria, function ($document) use (&$results) { |
|
77 | + $this->onMatch($collection, $criteria, function($document) use (&$results) { |
|
78 | 78 | $results[] = $document; |
79 | 79 | }, true); |
80 | 80 |