Completed
Push — master ( cc2765...340ff8 )
by Richard
08:19
created
src/App/App.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 namespace Lechimp\Dicto\App;
12 12
 
13 13
 use Lechimp\Dicto\App\RuleLoader;
14
-use Lechimp\Dicto\Rules\Ruleset;
15 14
 use Symfony\Component\Yaml\Yaml;
16 15
 use Pimple\Container;
17 16
 use PhpParser\ParserFactory;
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * Load rules and initial config from a *.php-file.
63 63
      *
64 64
      * @param   string  $path
65
-     * @return  array   ($ruleset, $config)
65
+     * @return  Ruleset   ($ruleset, $config)
66 66
      */
67 67
     protected function load_rules_file($path) {
68 68
         if (!file_exists($path)) {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * Create and initialize the DI-container.
93 93
      *
94
-     * @param   RuleSet     $ruleset
94
+     * @param   Ruleset     $ruleset
95 95
      * @param   array       &$configs
96 96
      * @return  Container
97 97
      */
Please login to merge, or discard this patch.
src/Indexer/Indexer.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * Index a directory.
101 101
      *
102 102
      * @param   string  $path
103
-     * @param   array   $ignore_paths
103
+     * @param   string[]   $ignore_paths
104 104
      * @return  null
105 105
      */
106 106
     public function index_directory($path, array $ignore_paths) {
@@ -129,6 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * Initialize the filesystem abstraction.
131 131
      *
132
+     * @param string $path
132 133
      * @return  Flightcontrol
133 134
      */
134 135
     public function init_flightcontrol($path) {
Please login to merge, or discard this patch.
src/Rules/ContainText.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,7 @@
 block discarded – undo
10 10
 
11 11
 namespace Lechimp\Dicto\Rules;
12 12
 
13
-use Lechimp\Dicto\Definition as Def;
14 13
 use Lechimp\Dicto\Analysis\Query;
15
-use Lechimp\Dicto\Analysis\Violation;
16 14
 
17 15
 /**
18 16
  * This checks wheather there is some text in the definition of an entity.
Please login to merge, or discard this patch.
src/App/ResultDB.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -230,6 +230,9 @@
 block discarded – undo
230 230
         return (int)$this->connection->lastInsertId();
231 231
     }
232 232
 
233
+    /**
234
+     * @param integer $var_id
235
+     */
233 236
     protected function update_variable(Variable $var, $var_id) {
234 237
         assert('is_integer($var_id)');
235 238
         assert('$this->current_run_id !== null');
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Lechimp\Dicto\Indexer\Insert;
16 16
 use Doctrine\DBAL\Connection;
17 17
 use Doctrine\DBAL\Schema;
18
-use Doctrine\DBAL\Types\Type;
19 18
 use Doctrine\DBAL\Schema\Synchronizer\SingleDatabaseSynchronizer;
20 19
 
21 20
 class DB implements Insert, Query {
Please login to merge, or discard this patch.
src/Definition/RuleParser.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,6 +117,7 @@  discard block
 block discarded – undo
117 117
     // IMPLEMENTATION OF Parser
118 118
 
119 119
     /**
120
+     * @param string $source
120 121
      * @return  Ruleset
121 122
      */
122 123
     public function parse($source) {
@@ -220,7 +221,7 @@  discard block
 block discarded – undo
220 221
     /**
221 222
      * Fetch a rule schema and its arguments from the stream.
222 223
      *
223
-     * @return  array   (R\Schema, array)
224
+     * @return  R\Schema   (R\Schema, array)
224 225
      */
225 226
     protected function rule_schema($right_binding_power = 0) {
226 227
         $t = $this->current_symbol();
Please login to merge, or discard this patch.
src/Rules/Relation.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
  */
10 10
 
11 11
 namespace Lechimp\Dicto\Definition\Fluid;
12
-use Lechimp\Dicto\Definition as Def;
13 12
 
14 13
 /**
15 14
  * Provides fluid interface to entities that were already defined before, at
Please login to merge, or discard this patch.