Completed
Push — master ( 5a0a25...383c62 )
by Matteo
02:38
created
src/Flat/Collection.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * Remove all the documents from the collection.
55 55
      *
56
-     * @return bool
56
+     * @return boolean|null
57 57
      */
58 58
     public function truncate()
59 59
     {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * @param mixed $criteria
98 98
      * @param bool  $multiple
99 99
      *
100
-     * @return int The count of the document deleted.
100
+     * @return boolean The count of the document deleted.
101 101
      */
102 102
     public function remove($criteria, $multiple = false)
103 103
     {
@@ -124,6 +124,9 @@  discard block
 block discarded – undo
124 124
         return $this->onMatch($criteria);
125 125
     }
126 126
 
127
+    /**
128
+     * @param integer $limit
129
+     */
127 130
     protected function onMatch($criteria, $limit = null)
128 131
     {
129 132
         $expression = $this->parser->parse($criteria);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Mattbit\Flat;
4 4
 
5
-use Mattbit\Flat\Document\Document;
6 5
 use Mattbit\Flat\Document\Identifiable;
7 6
 use Mattbit\Flat\Query\Expression\ExpressionInterface;
8 7
 use Mattbit\Flat\Query\Matcher;
Please login to merge, or discard this patch.
src/Flat/Database.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
         return $this->getOrCreateCollection($name);
44 44
     }
45 45
 
46
+    /**
47
+     * @param string $name
48
+     */
46 49
     public function getOrCreateCollection($name)
47 50
     {
48 51
         if (isset($this->collections[$name])) {
@@ -59,6 +62,9 @@  discard block
 block discarded – undo
59 62
         return $this->collections[$name] = new Collection($this, $store, $name);
60 63
     }
61 64
 
65
+    /**
66
+     * @param Collection $name
67
+     */
62 68
     public function dropCollection($name)
63 69
     {
64 70
         $this->engine->removeCollection($name);
Please login to merge, or discard this patch.
src/Flat/Storage/Engine.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Mattbit\Flat\Storage;
4 4
 
5
-use Mattbit\Flat\Query\Parser;
6 5
 use Mattbit\Flat\Query\Matcher;
7 6
 use Mattbit\Flat\Document\Document;
8 7
 use League\Flysystem\FilesystemInterface;
Please login to merge, or discard this patch.