Completed
Push — master ( 771a9f...9588c8 )
by Alexander
27:00
created
framework/db/Migration.php 1 patch
Doc Comments   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * This method contains the logic to be executed when applying this migration.
107 107
      * Child classes may override this method to provide actual migration logic.
108
-     * @return bool return a false value to indicate the migration fails
108
+     * @return false|null return a false value to indicate the migration fails
109 109
      * and should not proceed further. All other return values mean the migration succeeds.
110 110
      */
111 111
     public function up()
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * This method contains the logic to be executed when removing this migration.
135 135
      * The default implementation throws an exception indicating the migration cannot be removed.
136 136
      * Child classes may override this method if the corresponding migrations can be removed.
137
-     * @return bool return a false value to indicate the migration fails
137
+     * @return false|null return a false value to indicate the migration fails
138 138
      * and should not proceed further. All other return values mean the migration succeeds.
139 139
      */
140 140
     public function down()
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * please refer to [implicit commit](http://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html). If this is the case,
180 180
      * you should still implement `up()` and `down()`, instead.
181 181
      *
182
-     * @return bool return a false value to indicate the migration fails
182
+     * @return boolean|null return a false value to indicate the migration fails
183 183
      * and should not proceed further. All other return values mean the migration succeeds.
184 184
      */
185 185
     public function safeUp()
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * please refer to [implicit commit](http://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html). If this is the case,
198 198
      * you should still implement `up()` and `down()`, instead.
199 199
      *
200
-     * @return bool return a false value to indicate the migration fails
200
+     * @return boolean|null return a false value to indicate the migration fails
201 201
      * and should not proceed further. All other return values mean the migration succeeds.
202 202
      */
203 203
     public function safeDown()
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
      * The method will properly quote the table and column names.
409 409
      * @param string $name the name of the primary key constraint.
410 410
      * @param string $table the table that the primary key constraint will be added to.
411
-     * @param string|array $columns comma separated string or array of columns that the primary key will consist of.
411
+     * @param string[] $columns comma separated string or array of columns that the primary key will consist of.
412 412
      */
413 413
     public function addPrimaryKey($name, $table, $columns)
414 414
     {
@@ -434,9 +434,9 @@  discard block
 block discarded – undo
434 434
      * The method will properly quote the table and column names.
435 435
      * @param string $name the name of the foreign key constraint.
436 436
      * @param string $table the table that the foreign key constraint will be added to.
437
-     * @param string|array $columns the name of the column to that the constraint will be added on. If there are multiple columns, separate them with commas or use an array.
437
+     * @param string $columns the name of the column to that the constraint will be added on. If there are multiple columns, separate them with commas or use an array.
438 438
      * @param string $refTable the table that the foreign key references to.
439
-     * @param string|array $refColumns the name of the column that the foreign key references to. If there are multiple columns, separate them with commas or use an array.
439
+     * @param string $refColumns the name of the column that the foreign key references to. If there are multiple columns, separate them with commas or use an array.
440 440
      * @param string $delete the ON DELETE option. Most DBMS support these options: RESTRICT, CASCADE, NO ACTION, SET DEFAULT, SET NULL
441 441
      * @param string $update the ON UPDATE option. Most DBMS support these options: RESTRICT, CASCADE, NO ACTION, SET DEFAULT, SET NULL
442 442
      */
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
      * Builds and executes a SQL statement for creating a new index.
464 464
      * @param string $name the name of the index. The name will be properly quoted by the method.
465 465
      * @param string $table the table that the new index will be created for. The table name will be properly quoted by the method.
466
-     * @param string|array $columns the column(s) that should be included in the index. If there are multiple columns, please separate them
466
+     * @param string $columns the column(s) that should be included in the index. If there are multiple columns, please separate them
467 467
      * by commas or use an array. Each column name will be properly quoted by the method. Quoting will be skipped for column names that
468 468
      * include a left parenthesis "(".
469 469
      * @param bool $unique whether to add UNIQUE constraint on the created index.
@@ -562,6 +562,7 @@  discard block
 block discarded – undo
562 562
      * Finalizes after the command has been executed, and outputs to the console the time elapsed
563 563
      * 
564 564
      * @param float the time before the command was executed.
565
+     * @param double $time
565 566
      * @since 2.0.13
566 567
      */
567 568
     protected function endCommand($time)
Please login to merge, or discard this patch.