Completed
Push — master ( 4fd125...05840b )
by Richard
05:36
created
src/Rules/ContainText.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Lechimp\Dicto\Indexer\Insert;
15 15
 use Lechimp\Dicto\Indexer\Location;
16 16
 use Lechimp\Dicto\Analysis\Query;
17
-use Lechimp\Dicto\Analysis\Violation;
18 17
 use \Lechimp\Dicto\Variables\Variable;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -126,6 +126,9 @@
 block discarded – undo
126 126
             );
127 127
     }
128 128
 
129
+    /**
130
+     * @param boolean $negate
131
+     */
129 132
     protected function regexp_source_filter($regexp, $negate) {
130 133
         assert('is_string($regexp)');
131 134
         assert('is_bool($negate)');
Please login to merge, or discard this patch.
src/Definition/RuleParser.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,6 +210,7 @@  discard block
 block discarded – undo
210 210
     // IMPLEMENTATION OF Parser
211 211
 
212 212
     /**
213
+     * @param string $source
213 214
      * @return  Ruleset
214 215
      */
215 216
     public function parse($source) {
@@ -270,6 +271,7 @@  discard block
 block discarded – undo
270 271
 
271 272
     /**
272 273
      * @param   string
274
+     * @param string $content
273 275
      * @return  string
274 276
      */
275 277
     protected function trim_explanation($content) {
@@ -338,7 +340,7 @@  discard block
 block discarded – undo
338 340
     /**
339 341
      * Fetch a rule schema and its arguments from the stream.
340 342
      *
341
-     * @return  array   (R\Schema, array)
343
+     * @return  R\Schema   (R\Schema, array)
342 344
      */
343 345
     protected function schema() {
344 346
         $t = $this->current_symbol();
Please login to merge, or discard this patch.
src/App/IndexDB.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,7 @@
 block discarded – undo
12 12
 
13 13
 use Lechimp\Dicto\Graph;
14 14
 use Doctrine\DBAL\Schema;
15
-use Doctrine\DBAL\Types\Type;
16 15
 use Doctrine\DBAL\Schema\Synchronizer\SingleDatabaseSynchronizer;
17
-use Doctrine\DBAL\Statement;
18 16
 
19 17
 class IndexDB extends DB {
20 18
     /**
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@  discard block
 block discarded – undo
112 112
         }
113 113
     }
114 114
 
115
+    /**
116
+     * @param string $key
117
+     */
115 118
     protected function insert_property($entity_id, $key, $value) {
116 119
         $is_entity = false;
117 120
         if ($value instanceof Graph\Node) {
@@ -158,6 +161,9 @@  discard block
 block discarded – undo
158 161
     }
159 162
 
160 163
 
164
+    /**
165
+     * @param Graph\IndexDB $index
166
+     */
161 167
     protected function select_properties($id, $index) {
162 168
         $id = (int)$id;
163 169
         $res = $this->connection->executeQuery
Please login to merge, or discard this patch.
src/Variables/LanguageConstruct.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
      */
20 20
     private $construct_name;
21 21
 
22
+    /**
23
+     * @param string $construct_name
24
+     */
22 25
     public function __construct($construct_name, $name = null) {
23 26
         parent::__construct($name);
24 27
         assert('is_string($construct_name)');
Please login to merge, or discard this patch.
src/Variables/WithProperty.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 namespace Lechimp\Dicto\Variables;
12 12
 
13
-use Lechimp\Dicto\Graph\Node;
14 13
 use Lechimp\Dicto\Graph\PredicateFactory;
15 14
 
16 15
 /**
Please login to merge, or discard this patch.
src/Graph/Graph.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,6 +43,10 @@  discard block
 block discarded – undo
43 43
         return $node;
44 44
     }
45 45
 
46
+    /**
47
+     * @param integer $id
48
+     * @param string $type
49
+     */
46 50
     protected function build_node($id, $type, array $properties = null) {
47 51
         return new Node($id, $type, $properties);
48 52
     }
@@ -64,7 +68,7 @@  discard block
 block discarded – undo
64 68
      * Get nodes from the graph, maybe filtered by a filter.
65 69
      *
66 70
      * @param   Predicate|null    $filter
67
-     * @return  Iterator <Node>
71
+     * @return  \Generator <Node>
68 72
      */
69 73
     public function nodes(Predicate $filter = null) {
70 74
         if ($filter !== null) {
Please login to merge, or discard this patch.
src/Graph/QueryImpl.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     }
98 98
 
99 99
     /**
100
-     * @return  Iterator <[Node,mixed]>
100
+     * @return  \Generator <[Node,mixed]>
101 101
      */
102 102
     protected function switch_run_command(\Iterator $nodes, $step) {
103 103
         list($cmd,$par) = $step;
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     }
117 117
 
118 118
     /**
119
-     * @return  Iterator <[Node,mixed]>
119
+     * @return  \Generator <[Node,mixed]>
120 120
      */
121 121
     protected function run_expand(\Iterator $nodes, \Closure $clsr) {
122 122
         while ($nodes->valid()) {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     }
131 131
 
132 132
     /**
133
-     * @return  Iterator <[Node,mixed]>
133
+     * @return  \Generator <[Node,mixed]>
134 134
      */
135 135
     protected function run_extract(\Iterator $nodes, \Closure $clsr) {
136 136
         while ($nodes->valid()) {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     }
146 146
 
147 147
     /**
148
-     * @return  Iterator <[Node,mixed]>
148
+     * @return  \Generator <[Node,mixed]>
149 149
      */
150 150
     protected function run_filter(\Iterator $nodes, Predicate $predicate) {
151 151
         $clsr = $predicate->compile();
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     }
161 161
 
162 162
     /**
163
-     * @return  Iterator <[Node,mixed]>
163
+     * @return  \Generator <[Node,mixed]>
164 164
      */
165 165
     protected function add_result(\Iterator $nodes, &$result) {
166 166
         while ($nodes->valid()) {
Please login to merge, or discard this patch.