Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit e489d01

Browse files
committed
chore: format project files
1 parent 5b1b8f2 commit e489d01

File tree

4 files changed

+28
-21
lines changed

4 files changed

+28
-21
lines changed

app/database/migrations/2019_11_18_133625_create_users.php

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Leaf\Schema;
66

7-
class CreateUsers extends Database {
8-
/**
9-
* Run the migrations.
10-
*
11-
* @return void
12-
*/
13-
public function up() {
7+
class CreateUsers extends Database
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
1416
// if (!static::$capsule::schema()->hasTable("users")):
1517
// static::$capsule::schema()->create("users", function (Blueprint $table) {
1618
// $table->increments('id');
@@ -26,14 +28,15 @@ public function up() {
2628

2729
// you can now build your migrations with schemas [EXPERIMENTAL]
2830
Schema::build(static::$capsule, dirname(__DIR__) . "/Schema/users.json");
29-
}
31+
}
3032

31-
/**
32-
* Reverse the migrations.
33-
*
34-
* @return void
35-
*/
36-
public function down() {
37-
static::$capsule::schema()->dropIfExists("users");
38-
}
33+
/**
34+
* Reverse the migrations.
35+
*
36+
* @return void
37+
*/
38+
public function down()
39+
{
40+
static::$capsule::schema()->dropIfExists("users");
41+
}
3942
}

app/database/migrations/2019_11_18_155705_create_password_resets.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
use Leaf\Database;
44

5-
class CreatePasswordResets extends Database {
5+
class CreatePasswordResets extends Database
6+
{
67
/**
78
* Run the migrations.
89
*
910
* @return void
1011
*/
11-
public function up() {
12-
if(!static::$capsule::schema()->hasTable("password_resets")):
12+
public function up()
13+
{
14+
if (!static::$capsule::schema()->hasTable("password_resets")) :
1315
static::$capsule::schema()->create("password_resets", function ($table) {
1416
$table->string('email')->index();
1517
$table->string('token');
@@ -23,7 +25,8 @@ public function up() {
2325
*
2426
* @return void
2527
*/
26-
public function down() {
28+
public function down()
29+
{
2730
static::$capsule::schema()->dropIfExists("password_resets");
2831
}
2932
}

app/database/seeds/DatabaseSeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DatabaseSeeder extends Seeder
1111
*
1212
* @return void
1313
*/
14-
public function run() : array
14+
public function run(): array
1515
{
1616
return [
1717
UsersSeeder::class,

app/database/seeds/UsersSeeder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace App\Database\Seeds;
34

45
use App\Database\Factories\UserFactory;

0 commit comments

Comments
 (0)