Completed
Push — master ( 122fed...5a0a25 )
by Matteo
02:34
created
src/Flat/Collection.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Flat/Storage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.