Completed
Pull Request — master (#1201)
by Mark
03:13
created
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 InputInterface $input
101 101
      * @param 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/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/Db/Adapter/SqlServerAdapter.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -340,6 +340,9 @@  discard block
 block discarded – undo
340 340
         $this->execute($sql);
341 341
     }
342 342
 
343
+    /**
344
+     * @return string
345
+     */
343 346
     public function getColumnComment($tableName, $columnName)
344 347
     {
345 348
         $sql = sprintf("SELECT cast(extended_properties.[value] as nvarchar(4000)) comment
@@ -464,6 +467,11 @@  discard block
 block discarded – undo
464 467
         );
465 468
     }
466 469
 
470
+    /**
471
+     * @param string $tableName
472
+     * @param string $columnName
473
+     * @param string $newColumnName
474
+     */
467 475
     protected function renameDefault($tableName, $columnName, $newColumnName)
468 476
     {
469 477
         $oldConstraintName = "DF_{$tableName}_{$columnName}";
@@ -481,6 +489,9 @@  discard block
 block discarded – undo
481 489
         ));
482 490
     }
483 491
 
492
+    /**
493
+     * @param string $tableName
494
+     */
484 495
     public function changeDefault($tableName, Column $newColumn)
485 496
     {
486 497
         $constraintName = "DF_{$tableName}_{$newColumn->getName()}";
@@ -555,6 +566,10 @@  discard block
 block discarded – undo
555 566
         );
556 567
     }
557 568
 
569
+    /**
570
+     * @param string $tableName
571
+     * @param string $columnName
572
+     */
558 573
     protected function dropDefaultConstraint($tableName, $columnName)
559 574
     {
560 575
         $defaultConstraint = $this->getDefaultConstraint($tableName, $columnName);
@@ -1069,6 +1084,7 @@  discard block
 block discarded – undo
1069 1084
      * Gets the SqlServer Index Definition for an Index object.
1070 1085
      *
1071 1086
      * @param Index $index Index
1087
+     * @param string $tableName
1072 1088
      * @return string
1073 1089
      */
1074 1090
     protected function getIndexSqlDefinition(Index $index, $tableName)
@@ -1097,6 +1113,7 @@  discard block
 block discarded – undo
1097 1113
      * Gets the SqlServer Foreign Key Definition for an ForeignKey object.
1098 1114
      *
1099 1115
      * @param ForeignKey $foreignKey
1116
+     * @param string $tableName
1100 1117
      * @return string
1101 1118
      */
1102 1119
     protected function getForeignKeySqlDefinition(ForeignKey $foreignKey, $tableName)
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/Db/Adapter/SQLiteAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1042,7 +1042,7 @@
 block discarded – undo
1042 1042
     /**
1043 1043
      * Gets the SQLite Index Definition for an Index object.
1044 1044
      *
1045
-     * @param Index $table Index
1045
+     * @param Table $table Index
1046 1046
      * @return string
1047 1047
      */
1048 1048
     protected function getIndexSqlDefinition(Table $table, Index $index)
Please login to merge, or discard this patch.
src/Phinx/Db/Table.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
     /**
282 282
      * Gets an array of foreign keys waiting to be commited.
283 283
      *
284
-     * @return array|ForeignKey[]
284
+     * @return ForeignKey[]
285 285
      */
286 286
     public function getForeignKeys()
287 287
     {
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      *
333 333
      * Valid options can be: limit, default, null, precision or scale.
334 334
      *
335
-     * @param string|Column $columnName Column Name
335
+     * @param string $columnName Column Name
336 336
      * @param string $type Column Type
337 337
      * @param array $options Column Options
338 338
      * @throws \RuntimeException
@@ -495,7 +495,6 @@  discard block
 block discarded – undo
495 495
      * Checks to see if an index exists.
496 496
      *
497 497
      * @param string|array $columns Columns
498
-     * @param array        $options Options
499 498
      * @return bool
500 499
      */
501 500
     public function hasIndex($columns)
Please login to merge, or discard this patch.