Completed
Push — master ( 605cf4...2dcac2 )
by Richard
05:16
created
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   +13 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@  discard block
 block discarded – undo
60 60
      */
61 61
     protected $id_counter = 0;
62 62
 
63
+    /**
64
+     * @param \Doctrine\DBAL\Connection $connection
65
+     */
63 66
     public function __construct($connection) {
64 67
         parent::__construct($connection);
65 68
         foreach ($this->tables as $table => $_) {
@@ -180,6 +183,9 @@  discard block
 block discarded – undo
180 183
         $which = [];
181 184
     }
182 185
 
186
+    /**
187
+     * @param string $table
188
+     */
183 189
     protected function append_and_maybe_flush($table, $values) {
184 190
         if ($values[0] === null) {
185 191
             $id = $this->id_counter++;
@@ -197,6 +203,10 @@  discard block
 block discarded – undo
197 203
 
198 204
         return $id;
199 205
     }
206
+
207
+    /**
208
+     * @param string $str
209
+     */
200 210
     protected function esc_str($str) {
201 211
         assert('is_string($str)');
202 212
         return '"'.str_replace('"', '""', $str).'"';
@@ -340,6 +350,9 @@  discard block
 block discarded – undo
340 350
 
341 351
     // INIT DATABASE
342 352
 
353
+    /**
354
+     * @param string $name
355
+     */
343 356
     public function init_table($name, Schema\Schema $schema, Schema\Table $file_table = null, Schema\Table $namespace_table = null) {
344 357
         assert('array_key_exists($name, $this->tables)');
345 358
         $table = $schema->createTable($name);
Please login to merge, or discard this patch.
src/Indexer/ASTVisitor.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,6 @@
 block discarded – undo
10 10
 
11 11
 namespace Lechimp\Dicto\Indexer;
12 12
 
13
-use Lechimp\Dicto\Variables\Variable;
14
-use PhpParser\Node as N;
15
-
16 13
 /**
17 14
  * Interface to implement Rules that visit the AST.
18 15
  *
Please login to merge, or discard this patch.
src/Indexer/InsertTwice.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,6 @@
 block discarded – undo
10 10
 
11 11
 namespace Lechimp\Dicto\Indexer;
12 12
 
13
-use Lechimp\Dicto\Analysis\Variable;
14
-
15 13
 /**
16 14
  * Duplicate inserts, return handles from both interfaces and analyses them
17 15
  * on usage.
Please login to merge, or discard this patch.