Completed
Push — master ( dd1a15...b9b9a3 )
by Matteo
02:00
created
src/Flat/Storage/JsonEncoder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
         return $document;
49 49
     }
50 50
 
51
+    /**
52
+     * @param DocumentInterface $document
53
+     */
51 54
     public function flatten($document, $prepend = '')
52 55
     {
53 56
         $results = [];
Please login to merge, or discard this patch.
src/Flat/Collection.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * Remove all the documents from the collection.
61 61
      *
62
-     * @return bool
62
+     * @return boolean|null
63 63
      */
64 64
     public function truncate()
65 65
     {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @param DocumentInterface $document
73 73
      *
74
-     * @return bool
74
+     * @return string
75 75
      */
76 76
     public function insert(DocumentInterface $document)
77 77
     {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param mixed $criteria
104 104
      * @param bool  $multiple
105 105
      *
106
-     * @return int The count of the document deleted.
106
+     * @return boolean The count of the document deleted.
107 107
      */
108 108
     public function remove($criteria, $multiple = false)
109 109
     {
@@ -130,6 +130,9 @@  discard block
 block discarded – undo
130 130
         return $this->onMatch($criteria);
131 131
     }
132 132
 
133
+    /**
134
+     * @param integer $limit
135
+     */
133 136
     protected function onMatch($criteria, $limit = null)
134 137
     {
135 138
         $expression = $this->parser->parse($criteria);
Please login to merge, or discard this patch.