@@ -90,6 +90,7 @@ |
||
90 | 90 | * If that is also not the case, we assume the class is in the global |
91 | 91 | * namespace. |
92 | 92 | * |
93 | + * @param string $name |
|
93 | 94 | * @return string |
94 | 95 | */ |
95 | 96 | protected function fully_qualified_class_name($name) { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * Get information about a run. |
109 | 109 | * |
110 | 110 | * @param int $run |
111 | - * @return array<string,string> with keys 'commit_hash' |
|
111 | + * @return integer with keys 'commit_hash' |
|
112 | 112 | */ |
113 | 113 | public function run_info($run) { |
114 | 114 | $b = $this->result_db->builder(); |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | * Get information about a rule. |
258 | 258 | * |
259 | 259 | * @param int $rule |
260 | - * @return array<string,string> with keys 'rule', 'explanation' |
|
260 | + * @return integer|null with keys 'rule', 'explanation' |
|
261 | 261 | */ |
262 | 262 | public function rule_info($rule) { |
263 | 263 | $b = $this->result_db->builder(); |
@@ -68,6 +68,9 @@ discard block |
||
68 | 68 | return $tree_builder; |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param \Symfony\Component\Config\Definition\Builder\NodeBuilder $c |
|
73 | + */ |
|
71 | 74 | protected function add_project_node($c) { |
72 | 75 | $c->arrayNode("project") |
73 | 76 | ->children() |
@@ -84,6 +87,9 @@ discard block |
||
84 | 87 | ->end(); |
85 | 88 | } |
86 | 89 | |
90 | + /** |
|
91 | + * @param \Symfony\Component\Config\Definition\Builder\NodeBuilder $c |
|
92 | + */ |
|
87 | 93 | protected function add_analysis_node($c) { |
88 | 94 | $c->arrayNode("analysis") |
89 | 95 | ->children() |
@@ -103,6 +109,9 @@ discard block |
||
103 | 109 | ->end(); |
104 | 110 | } |
105 | 111 | |
112 | + /** |
|
113 | + * @param \Symfony\Component\Config\Definition\Builder\NodeBuilder $c |
|
114 | + */ |
|
106 | 115 | protected function add_rules_node($c) { |
107 | 116 | $c->arrayNode("rules") |
108 | 117 | ->children() |
@@ -146,6 +155,9 @@ discard block |
||
146 | 155 | ->end(); |
147 | 156 | } |
148 | 157 | |
158 | + /** |
|
159 | + * @param \Symfony\Component\Config\Definition\Builder\NodeBuilder $c |
|
160 | + */ |
|
149 | 161 | protected function add_runtime_node($c) { |
150 | 162 | $c->arrayNode("runtime") |
151 | 163 | ->children() |
@@ -157,6 +169,9 @@ discard block |
||
157 | 169 | ->end(); |
158 | 170 | } |
159 | 171 | |
172 | + /** |
|
173 | + * @param \Symfony\Component\Config\Definition\Builder\NodeBuilder $c |
|
174 | + */ |
|
160 | 175 | protected function add_reports_node($c) { |
161 | 176 | $c->arrayNode("reports") |
162 | 177 | ->prototype("array") |
@@ -11,7 +11,6 @@ |
||
11 | 11 | namespace Lechimp\Dicto\App; |
12 | 12 | |
13 | 13 | use Lechimp\Dicto\Report; |
14 | - |
|
15 | 14 | use Symfony\Component\Config\Definition\Processor; |
16 | 15 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
17 | 16 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
109 | - * @return Iterator <[Node,mixed]> |
|
109 | + * @return \Generator <[Node,mixed]> |
|
110 | 110 | */ |
111 | 111 | protected function switch_run_command(\Iterator $nodes, $step) { |
112 | 112 | list($cmd,$par) = $step; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
128 | - * @return Iterator <[Node,mixed]> |
|
128 | + * @return \Generator <[Node,mixed]> |
|
129 | 129 | */ |
130 | 130 | protected function run_expand(\Iterator $nodes, \Closure $clsr) { |
131 | 131 | while ($nodes->valid()) { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
142 | - * @return Iterator <[Node,mixed]> |
|
142 | + * @return \Generator <[Node,mixed]> |
|
143 | 143 | */ |
144 | 144 | protected function run_extract(\Iterator $nodes, \Closure $clsr) { |
145 | 145 | while ($nodes->valid()) { |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | } |
155 | 155 | |
156 | 156 | /** |
157 | - * @return Iterator <[Node,mixed]> |
|
157 | + * @return \Generator <[Node,mixed]> |
|
158 | 158 | */ |
159 | 159 | protected function run_filter(\Iterator $nodes, \Closure $predicate) { |
160 | 160 | while ($nodes->valid()) { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
171 | - * @return Iterator <[Node,mixed]> |
|
171 | + * @return \Generator <[Node,mixed]> |
|
172 | 172 | */ |
173 | 173 | protected function add_result(\Iterator $nodes, &$result) { |
174 | 174 | while ($nodes->valid()) { |
@@ -153,6 +153,9 @@ |
||
153 | 153 | ); |
154 | 154 | } |
155 | 155 | |
156 | + /** |
|
157 | + * @param boolean $negate |
|
158 | + */ |
|
156 | 159 | protected function regexp_source_filter(PredicateFactory $f, Regexp $regexp, $negate) { |
157 | 160 | assert('is_bool($negate)'); |
158 | 161 | return $f->_custom(function(Graph\Entity $e) use ($regexp, $negate) { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | |
13 | 13 | use Lechimp\Dicto\Regexp; |
14 | 14 | use Lechimp\Dicto\Analysis\Index; |
15 | -use Lechimp\Dicto\Analysis\Violation; |
|
16 | 15 | use Lechimp\Dicto\Definition\ArgumentParser; |
17 | 16 | use Lechimp\Dicto\Graph\Node; |
18 | 17 | use Lechimp\Dicto\Graph\PredicateFactory; |