Completed
Push — master ( e16983...123585 )
by Mark
15s
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
@@ -342,6 +342,9 @@  discard block
 block discarded – undo
342 342
         $this->execute($sql);
343 343
     }
344 344
 
345
+    /**
346
+     * @return string
347
+     */
345 348
     public function getColumnComment($tableName, $columnName)
346 349
     {
347 350
         $sql = sprintf("SELECT cast(extended_properties.[value] as nvarchar(4000)) comment
@@ -466,6 +469,11 @@  discard block
 block discarded – undo
466 469
         );
467 470
     }
468 471
 
472
+    /**
473
+     * @param string $tableName
474
+     * @param string $columnName
475
+     * @param string $newColumnName
476
+     */
469 477
     protected function renameDefault($tableName, $columnName, $newColumnName)
470 478
     {
471 479
         $oldConstraintName = "DF_{$tableName}_{$columnName}";
@@ -483,6 +491,9 @@  discard block
 block discarded – undo
483 491
         ));
484 492
     }
485 493
 
494
+    /**
495
+     * @param string $tableName
496
+     */
486 497
     public function changeDefault($tableName, Column $newColumn)
487 498
     {
488 499
         $constraintName = "DF_{$tableName}_{$newColumn->getName()}";
@@ -557,6 +568,10 @@  discard block
 block discarded – undo
557 568
         );
558 569
     }
559 570
 
571
+    /**
572
+     * @param string $tableName
573
+     * @param string $columnName
574
+     */
560 575
     protected function dropDefaultConstraint($tableName, $columnName)
561 576
     {
562 577
         $defaultConstraint = $this->getDefaultConstraint($tableName, $columnName);
@@ -1079,6 +1094,7 @@  discard block
 block discarded – undo
1079 1094
      * Gets the SqlServer Index Definition for an Index object.
1080 1095
      *
1081 1096
      * @param \Phinx\Db\Table\Index $index Index
1097
+     * @param string $tableName
1082 1098
      * @return string
1083 1099
      */
1084 1100
     protected function getIndexSqlDefinition(Index $index, $tableName)
@@ -1107,6 +1123,7 @@  discard block
 block discarded – undo
1107 1123
      * Gets the SqlServer Foreign Key Definition for an ForeignKey object.
1108 1124
      *
1109 1125
      * @param \Phinx\Db\Table\ForeignKey $foreignKey
1126
+     * @param string $tableName
1110 1127
      * @return string
1111 1128
      */
1112 1129
     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, -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|\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
@@ -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.
src/Phinx/Console/PhinxApplication.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,6 @@
 block discarded – undo
45 45
      *
46 46
      * Initialize the Phinx console application.
47 47
      *
48
-     * @param string $version The Application Version
49 48
      */
50 49
     public function __construct()
51 50
     {
Please login to merge, or discard this patch.