Completed
Pull Request — master (#1193)
by Dmitriy
02:00
created
src/Phinx/Db/Adapter/MysqlAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1118,7 +1118,7 @@
 block discarded – undo
1118 1118
 
1119 1119
     /**
1120 1120
      * Returns MySQL column types (inherited and MySQL specified).
1121
-     * @return array
1121
+     * @return string[]
1122 1122
      */
1123 1123
     public function getColumnTypes()
1124 1124
     {
Please login to merge, or discard this patch.
src/Phinx/Wrapper/TextWrapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
      *
214 214
      * @param  string $key
215 215
      * @param  string $value
216
-     * @return object
216
+     * @return TextWrapper
217 217
      */
218 218
     public function setOption($key, $value)
219 219
     {
Please login to merge, or discard this patch.
src/Phinx/Console/Command/Create.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      *
100 100
      * @param \Symfony\Component\Console\Input\InputInterface $input
101 101
      * @param \Symfony\Component\Console\Output\OutputInterface $output
102
-     * @return mixed
102
+     * @return string
103 103
      * @throws \Exception
104 104
      */
105 105
     protected function getMigrationPath(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
src/Phinx/Db/Action/DropForeignKey.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
  */
25 25
 namespace Phinx\Db\Action;
26 26
 
27
-use InvalidArgumentException;
28 27
 use Phinx\Db\Table\ForeignKey;
29 28
 use Phinx\Db\Table\Table;
30 29
 
Please login to merge, or discard this patch.
src/Phinx/Db/Adapter/AdapterWrapper.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,6 @@
 block discarded – undo
29 29
 namespace Phinx\Db\Adapter;
30 30
 
31 31
 use Phinx\Db\Table\Column;
32
-use Phinx\Db\Table\ForeignKey;
33
-use Phinx\Db\Table\Index;
34 32
 use Phinx\Db\Table\Table;
35 33
 use Phinx\Migration\MigrationInterface;
36 34
 use Symfony\Component\Console\Input\InputInterface;
Please login to merge, or discard this patch.
src/Phinx/Db/Adapter/SqlServerAdapter.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -334,6 +334,9 @@  discard block
 block discarded – undo
334 334
         $this->execute($sql);
335 335
     }
336 336
 
337
+    /**
338
+     * @return string
339
+     */
337 340
     public function getColumnComment($tableName, $columnName)
338 341
     {
339 342
         $sql = sprintf("SELECT cast(extended_properties.[value] as nvarchar(4000)) comment
@@ -566,6 +569,8 @@  discard block
 block discarded – undo
566 569
 
567 570
     /**
568 571
      * {@inheritdoc}
572
+     * @param string $tableName
573
+     * @param string|null $columnName
569 574
      */
570 575
     protected function getDropDefaultConstraint($tableName, $columnName)
571 576
     {
@@ -578,6 +583,9 @@  discard block
 block discarded – undo
578 583
         return $this->getDropForeignKeyInstructions($tableName, $defaultConstraint);
579 584
     }
580 585
 
586
+    /**
587
+     * @return string
588
+     */
581 589
     protected function getDefaultConstraint($tableName, $columnName)
582 590
     {
583 591
         $sql = "SELECT
@@ -1073,6 +1081,7 @@  discard block
 block discarded – undo
1073 1081
      * Gets the SqlServer Index Definition for an Index object.
1074 1082
      *
1075 1083
      * @param \Phinx\Db\Table\Index $index Index
1084
+     * @param string $tableName
1076 1085
      * @return string
1077 1086
      */
1078 1087
     protected function getIndexSqlDefinition(Index $index, $tableName)
@@ -1098,6 +1107,7 @@  discard block
 block discarded – undo
1098 1107
      * Gets the SqlServer Foreign Key Definition for an ForeignKey object.
1099 1108
      *
1100 1109
      * @param \Phinx\Db\Table\ForeignKey $foreignKey
1110
+     * @param string $tableName
1101 1111
      * @return string
1102 1112
      */
1103 1113
     protected function getForeignKeySqlDefinition(ForeignKey $foreignKey, $tableName)
Please login to merge, or discard this patch.
src/Phinx/Db/Table.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
      *
237 237
      * Valid options can be: limit, default, null, precision or scale.
238 238
      *
239
-     * @param string|\Phinx\Db\Table\Column $columnName Column Name
239
+     * @param string $columnName Column Name
240 240
      * @param string|\Phinx\Util\Literal $type Column Type
241 241
      * @param array $options Column Options
242 242
      * @throws \RuntimeException
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,6 @@  discard block
 block discarded – undo
33 33
 use Phinx\Db\Action\AddIndex;
34 34
 use Phinx\Db\Action\ChangeColumn;
35 35
 use Phinx\Db\Action\CreateTable;
36
-use Phinx\Db\Action\DropColumn;
37 36
 use Phinx\Db\Action\DropForeignKey;
38 37
 use Phinx\Db\Action\DropIndex;
39 38
 use Phinx\Db\Action\DropTable;
@@ -44,7 +43,6 @@  discard block
 block discarded – undo
44 43
 use Phinx\Db\Plan\Intent;
45 44
 use Phinx\Db\Plan\Plan;
46 45
 use Phinx\Db\Table\Column;
47
-use Phinx\Db\Table\ForeignKey;
48 46
 use Phinx\Db\Table\Index;
49 47
 use Phinx\Db\Table\Table as TableValue;
50 48
 
Please login to merge, or discard this patch.
src/Phinx/Db/Util/AlterInstructions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      * Constructor
46 46
      *
47 47
      * @param array $alterParts SQL snipets to be added to a single ALTER instruction per table
48
-     * @param array $postSteps SQL commands to be executed after the ALTER instruction
48
+     * @param string[] $postSteps SQL commands to be executed after the ALTER instruction
49 49
      */
50 50
     public function __construct(array $alterParts = [], array $postSteps = [])
51 51
     {
Please login to merge, or discard this patch.