Completed
Push — master ( 0a2d22...d0642e )
by James Ekow Abaka
02:53
created
src/ChangeLogger.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@  discard block
 block discarded – undo
23 23
     private $skipOnErrors = false;
24 24
     private $yentu;
25 25
 
26
+    /**
27
+     * @param string $itemType
28
+     */
26 29
     public function skip($itemType)
27 30
     {
28 31
         $this->skippedItemTypes[] = $itemType;
@@ -41,6 +44,9 @@  discard block
 block discarded – undo
41 44
         $this->dryRun = $dryRun;
42 45
     }
43 46
 
47
+    /**
48
+     * @param string $itemType
49
+     */
44 50
     public function allowOnly($itemType)
45 51
     {
46 52
         $this->allowedItemTypes[] = $itemType;
@@ -70,6 +76,9 @@  discard block
 block discarded – undo
70 76
         $this->migration = $migration;
71 77
     }
72 78
 
79
+    /**
80
+     * @param string[] $matches
81
+     */
73 82
     private function performOperation($method, $matches, $arguments)
74 83
     {
75 84
         try {
Please login to merge, or discard this patch.
src/ChangeReverser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -5,6 +5,9 @@
 block discarded – undo
5 5
 {
6 6
     private static $driver;
7 7
 
8
+    /**
9
+     * @param manipulators\AbstractDatabaseManipulator $driver
10
+     */
8 11
     public static function setDriver($driver)
9 12
     {
10 13
         self::$driver = $driver;
Please login to merge, or discard this patch.
src/cli.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 require __DIR__ . "/../src/globals.php";
29 29
 
30 30
 use clearice\ArgumentParser;
31
-use yentu\AbstractDatabaseManipulator;
32 31
 use ntentan\atiaa\DriverFactory;
33
-use yentu\Yentu;
34 32
 use ntentan\config\Config;
33
+use yentu\AbstractDatabaseManipulator;
34
+use yentu\Yentu;
35 35
 
36 36
 $argumentParser = new ArgumentParser();
37 37
 $argumentParser->addCommands([
Please login to merge, or discard this patch.
src/commands/Import.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -85,6 +85,9 @@  discard block
 block discarded – undo
85 85
         return $this->newVersion;
86 86
     }
87 87
 
88
+    /**
89
+     * @return string
90
+     */
88 91
     private function generateSchemaCode($description, $ref = false, $prefix = '')
89 92
     {
90 93
         $refprefix = $ref === true ? 'ref' : '->';
@@ -193,6 +196,9 @@  discard block
 block discarded – undo
193 196
         }
194 197
     }
195 198
 
199
+    /**
200
+     * @param string $type
201
+     */
196 202
     protected function importConstraints($type, $constraints)
197 203
     {
198 204
         foreach ($constraints as $name => $constraint) {
Please login to merge, or discard this patch.
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 yentu\commands;
4 4
 
5
-use yentu\DatabaseManipulatorFactory;
6
-use yentu\CodeWriter;
7 5
 use clearice\ConsoleIO;
6
+use yentu\CodeWriter;
7
+use yentu\DatabaseManipulatorFactory;
8 8
 use yentu\Yentu;
9 9
 
10 10
 class Import implements \yentu\Reversible
Please login to merge, or discard this patch.
src/commands/Init.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
 
27 27
 namespace yentu\commands;
28 28
 
29
+use clearice\ConsoleIO;
30
+use ntentan\config\Config;
31
+use yentu\DatabaseManipulatorFactory;
29 32
 use yentu\Yentu;
30 33
 use yentu\exceptions\CommandException;
31
-use yentu\DatabaseManipulatorFactory;
32
-use ntentan\config\Config;
33
-use clearice\ConsoleIO;
34 34
 
35 35
 /**
36 36
  * The init command class. This command intiates a project for yentu migration
Please login to merge, or discard this patch.
src/commands/Migrate.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
         $this->io = $io;
64 64
     }
65 65
 
66
+    /**
67
+     * @param string $filter
68
+     */
66 69
     public function setupOptions($options, &$filter)
67 70
     {
68 71
         if (isset($options['no-foreign-keys'])) {
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@
 block discarded – undo
26 26
 
27 27
 namespace yentu\commands;
28 28
 
29
-use yentu\database\DatabaseItem;
30
-use yentu\DatabaseManipulatorFactory;
29
+use clearice\ConsoleIO;
30
+use ntentan\config\Config;
31 31
 use yentu\ChangeLogger;
32
+use yentu\DatabaseManipulatorFactory;
33
+use yentu\Reversible;
32 34
 use yentu\Yentu;
35
+use yentu\database\DatabaseItem;
33 36
 use yentu\database\ForeignKey;
34
-use yentu\Reversible;
35
-use ntentan\config\Config;
36
-use clearice\ConsoleIO;
37 37
 
38 38
 /**
39 39
  * The migrate command for the yentu database migration system. This class is
Please login to merge, or discard this patch.
src/commands/Rollback.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@
 block discarded – undo
62 62
         }
63 63
     }
64 64
 
65
+    /**
66
+     * @param \yentu\manipulators\AbstractDatabaseManipulator $db
67
+     */
65 68
     private function getOperations($db, $set)
66 69
     {
67 70
         $operations = [];
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace yentu\commands;
4 4
 
5
+use clearice\ConsoleIO;
5 6
 use yentu\ChangeReverser;
6 7
 use yentu\DatabaseManipulatorFactory;
7
-use yentu\database\DatabaseItem;
8
-use clearice\ConsoleIO;
9 8
 use yentu\Yentu;
9
+use yentu\database\DatabaseItem;
10 10
 
11 11
 class Rollback
12 12
 {
Please login to merge, or discard this patch.
src/manipulators/AbstractDatabaseManipulator.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -177,6 +177,9 @@
 block discarded – undo
177 177
         return $this->schemaDescription;
178 178
     }
179 179
 
180
+    /**
181
+     * @param string $version
182
+     */
180 183
     public function setVersion($version)
181 184
     {
182 185
         $this->query('INSERT INTO yentu_history(version) values (?)', array($version));
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace yentu\manipulators;
4 4
 
5
-use ntentan\atiaa\DriverFactory;
6 5
 use clearice\ConsoleIO;
7
-use yentu\Yentu;
6
+use ntentan\atiaa\DriverFactory;
8 7
 use yentu\DatabaseAssertor;
9
-use yentu\SchemaDescription;
10 8
 use yentu\Parameters;
9
+use yentu\SchemaDescription;
10
+use yentu\Yentu;
11 11
 
12 12
 abstract class AbstractDatabaseManipulator
13 13
 {
Please login to merge, or discard this patch.
src/manipulators/Mysql.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@
 block discarded – undo
34 34
     private $autoIncrementPending;
35 35
     private $placeholders = array();
36 36
 
37
+    /**
38
+     * @param string $direction
39
+     */
37 40
     public function convertTypes($type, $direction, $length = null)
38 41
     {
39 42
         $types = array(
Please login to merge, or discard this patch.