Optimized return type of template

This commit is contained in:
huangzhhui 2019-06-08 14:27:56 +08:00
parent ab4980853e
commit 4cd083baa2
3 changed files with 6 additions and 18 deletions

View File

@ -8,20 +8,16 @@ class DummyClass extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
*
* @return void
*/ */
public function up() public function up(): void
{ {
// //
} }
/** /**
* Reverse the migrations. * Reverse the migrations.
*
* @return void
*/ */
public function down() public function down(): void
{ {
// //
} }

View File

@ -8,10 +8,8 @@ class DummyClass extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
*
* @return void
*/ */
public function up() public function up(): void
{ {
Schema::create('DummyTable', function (Blueprint $table) { Schema::create('DummyTable', function (Blueprint $table) {
$table->bigIncrements('id'); $table->bigIncrements('id');
@ -21,10 +19,8 @@ class DummyClass extends Migration
/** /**
* Reverse the migrations. * Reverse the migrations.
*
* @return void
*/ */
public function down() public function down(): void
{ {
Schema::dropIfExists('DummyTable'); Schema::dropIfExists('DummyTable');
} }

View File

@ -8,10 +8,8 @@ class DummyClass extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
*
* @return void
*/ */
public function up() public function up(): void
{ {
Schema::table('DummyTable', function (Blueprint $table) { Schema::table('DummyTable', function (Blueprint $table) {
// //
@ -20,10 +18,8 @@ class DummyClass extends Migration
/** /**
* Reverse the migrations. * Reverse the migrations.
*
* @return void
*/ */
public function down() public function down(): void
{ {
Schema::table('DummyTable', function (Blueprint $table) { Schema::table('DummyTable', function (Blueprint $table) {
// //