Completed
Push — dev ( 6802e3 )
by James Ekow Abaka
01:04
created
src/descriptors/SqliteDescriptor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@
 block discarded – undo
65 65
         }
66 66
     }
67 67
 
68
+    /**
69
+     * @param string $unique
70
+     */
68 71
     private function getIndexDetails($table, $unique)
69 72
     {
70 73
         $indices = $this->driver->query("pragma index_list({$table['name']})");
Please login to merge, or discard this patch.
src/Descriptor.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,8 @@  discard block
 block discarded – undo
38 38
      * @param string $schema The name of the schema whose tables should be
39 39
      *     describled.
40 40
      * @param array<string> An array contianing names of specific tables 
41
-     *     who's descriptions should be retrieved. 
41
+     *     who's descriptions should be retrieved.
42
+     * @param boolean $includeViews 
42 43
      * @return array<array>  
43 44
      */
44 45
     abstract protected function getTables($schema, $requestedTables, $includeViews);
@@ -339,6 +340,9 @@  discard block
 block discarded – undo
339 340
         }
340 341
     }
341 342
 
343
+    /**
344
+     * @param string $defaultValue
345
+     */
342 346
     protected function cleanDefaultValue($defaultValue) {
343 347
         return $defaultValue;
344 348
     }
Please login to merge, or discard this patch.
src/Driver.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace ntentan\atiaa;
4 4
 
5
-use ntentan\atiaa\exceptions\DatabaseDriverException;
6
-use ntentan\atiaa\exceptions\ConnectionException;
7 5
 use Psr\Log\LoggerInterface;
6
+use ntentan\atiaa\exceptions\ConnectionException;
7
+use ntentan\atiaa\exceptions\DatabaseDriverException;
8 8
 
9 9
 /**
10 10
  * A driver class for connecting to a specific database platform.
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
     /**
130 130
      *
131
-     * @param $statement
131
+     * @param \PDOStatement $statement
132 132
      * @return mixed
133 133
      */
134 134
     private function fetchRows($statement)
@@ -141,6 +141,9 @@  discard block
 block discarded – undo
141 141
         }
142 142
     }
143 143
 
144
+    /**
145
+     * @param string $query
146
+     */
144 147
     private function prepareQuery($query, $bindData)
145 148
     {
146 149
         $statement = $this->pdo->prepare($query);
@@ -347,7 +350,7 @@  discard block
 block discarded – undo
347 350
 
348 351
     /**
349 352
      * A wrapper around PDO's lastInsertId() method.
350
-     * @return mixed
353
+     * @return string
351 354
      */
352 355
     public function getLastInsertId()
353 356
     {
Please login to merge, or discard this patch.