Skip to content

Commit 2d746b7

Browse files
authored
Adds types to migrations (#1594)
1 parent 13329be commit 2d746b7

5 files changed

+10
-30
lines changed

database/migrations/2016_06_01_000001_create_oauth_auth_codes_table.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
14-
public function up()
12+
public function up(): void
1513
{
1614
Schema::create('oauth_auth_codes', function (Blueprint $table) {
1715
$table->string('id', 100)->primary();
@@ -25,10 +23,8 @@ public function up()
2523

2624
/**
2725
* Reverse the migrations.
28-
*
29-
* @return void
3026
*/
31-
public function down()
27+
public function down(): void
3228
{
3329
Schema::dropIfExists('oauth_auth_codes');
3430
}

database/migrations/2016_06_01_000002_create_oauth_access_tokens_table.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
14-
public function up()
12+
public function up(): void
1513
{
1614
Schema::create('oauth_access_tokens', function (Blueprint $table) {
1715
$table->string('id', 100)->primary();
@@ -27,10 +25,8 @@ public function up()
2725

2826
/**
2927
* Reverse the migrations.
30-
*
31-
* @return void
3228
*/
33-
public function down()
29+
public function down(): void
3430
{
3531
Schema::dropIfExists('oauth_access_tokens');
3632
}

database/migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
14-
public function up()
12+
public function up(): void
1513
{
1614
Schema::create('oauth_refresh_tokens', function (Blueprint $table) {
1715
$table->string('id', 100)->primary();
@@ -23,10 +21,8 @@ public function up()
2321

2422
/**
2523
* Reverse the migrations.
26-
*
27-
* @return void
2824
*/
29-
public function down()
25+
public function down(): void
3026
{
3127
Schema::dropIfExists('oauth_refresh_tokens');
3228
}

database/migrations/2016_06_01_000004_create_oauth_clients_table.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
14-
public function up()
12+
public function up(): void
1513
{
1614
Schema::create('oauth_clients', function (Blueprint $table) {
1715
$table->bigIncrements('id');
@@ -29,10 +27,8 @@ public function up()
2927

3028
/**
3129
* Reverse the migrations.
32-
*
33-
* @return void
3430
*/
35-
public function down()
31+
public function down(): void
3632
{
3733
Schema::dropIfExists('oauth_clients');
3834
}

database/migrations/2016_06_01_000005_create_oauth_personal_access_clients_table.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
{
99
/**
1010
* Run the migrations.
11-
*
12-
* @return void
1311
*/
14-
public function up()
12+
public function up(): void
1513
{
1614
Schema::create('oauth_personal_access_clients', function (Blueprint $table) {
1715
$table->bigIncrements('id');
@@ -22,10 +20,8 @@ public function up()
2220

2321
/**
2422
* Reverse the migrations.
25-
*
26-
* @return void
2723
*/
28-
public function down()
24+
public function down(): void
2925
{
3026
Schema::dropIfExists('oauth_personal_access_clients');
3127
}

0 commit comments

Comments
 (0)