Completed
Pull Request — master (#1280)
by AD
01:40
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/Adapter/SqlServerAdapter.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -332,6 +332,9 @@  discard block
 block discarded – undo
332 332
         $this->execute($sql);
333 333
     }
334 334
 
335
+    /**
336
+     * @return string
337
+     */
335 338
     public function getColumnComment($tableName, $columnName)
336 339
     {
337 340
         $sql = sprintf("SELECT cast(extended_properties.[value] as nvarchar(4000)) comment
@@ -456,6 +459,11 @@  discard block
 block discarded – undo
456 459
         );
457 460
     }
458 461
 
462
+    /**
463
+     * @param string $tableName
464
+     * @param string $columnName
465
+     * @param string $newColumnName
466
+     */
459 467
     protected function renameDefault($tableName, $columnName, $newColumnName)
460 468
     {
461 469
         $oldConstraintName = "DF_{$tableName}_{$columnName}";
@@ -473,6 +481,9 @@  discard block
 block discarded – undo
473 481
         ));
474 482
     }
475 483
 
484
+    /**
485
+     * @param string $tableName
486
+     */
476 487
     public function changeDefault($tableName, Column $newColumn)
477 488
     {
478 489
         $constraintName = "DF_{$tableName}_{$newColumn->getName()}";
@@ -547,6 +558,10 @@  discard block
 block discarded – undo
547 558
         );
548 559
     }
549 560
 
561
+    /**
562
+     * @param string $tableName
563
+     * @param string|null $columnName
564
+     */
550 565
     protected function dropDefaultConstraint($tableName, $columnName)
551 566
     {
552 567
         $defaultConstraint = $this->getDefaultConstraint($tableName, $columnName);
@@ -1055,6 +1070,7 @@  discard block
 block discarded – undo
1055 1070
      * Gets the SqlServer Index Definition for an Index object.
1056 1071
      *
1057 1072
      * @param \Phinx\Db\Table\Index $index Index
1073
+     * @param string|null $tableName
1058 1074
      * @return string
1059 1075
      */
1060 1076
     protected function getIndexSqlDefinition(Index $index, $tableName)
@@ -1083,6 +1099,7 @@  discard block
 block discarded – undo
1083 1099
      * Gets the SqlServer Foreign Key Definition for an ForeignKey object.
1084 1100
      *
1085 1101
      * @param \Phinx\Db\Table\ForeignKey $foreignKey
1102
+     * @param string|null $tableName
1086 1103
      * @return string
1087 1104
      */
1088 1105
     protected function getForeignKeySqlDefinition(ForeignKey $foreignKey, $tableName)
Please login to merge, or discard this patch.
src/Phinx/Db/Table.php 1 patch
Doc Comments   +2 added lines, -2 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|\Phinx\Db\Table\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|\Phinx\Db\Table\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
Please login to merge, or discard this patch.