@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Drop the collection. |
| 28 | 28 | * |
| 29 | - * @return bool |
|
| 29 | + * @return boolean|null |
|
| 30 | 30 | */ |
| 31 | 31 | public function drop() |
| 32 | 32 | { |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * Remove all the documents from the collection. |
| 37 | 37 | * |
| 38 | - * @return bool |
|
| 38 | + * @return boolean|null |
|
| 39 | 39 | */ |
| 40 | 40 | public function truncate() |
| 41 | 41 | { |
@@ -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 | |