@@ -13,6 +13,6 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Artisan::command('inspire', function () { |
|
| 16 | +Artisan::command('inspire', function() { |
|
| 17 | 17 | $this->comment(Inspiring::quote()); |
| 18 | 18 | })->describe('Display an inspiring quote'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | /** @var \Illuminate\Database\Eloquent\Factory $factory */ |
| 15 | -$factory->define(App\Models\User::class, function (Faker\Generator $faker) { |
|
| 15 | +$factory->define(App\Models\User::class, function(Faker\Generator $faker) { |
|
| 16 | 16 | static $password; |
| 17 | 17 | |
| 18 | 18 | return [ |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('email')->unique(); |
@@ -13,14 +13,14 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('categories', function (Blueprint $table) { |
|
| 16 | + Schema::create('categories', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->integer('parent_id')->unsigned()->nullable(); |
| 19 | 19 | $table->string('name')->unique(); |
| 20 | 20 | $table->timestamps(); |
| 21 | 21 | }); |
| 22 | 22 | |
| 23 | - Schema::table('categories', function (Blueprint $table) { |
|
| 23 | + Schema::table('categories', function(Blueprint $table) { |
|
| 24 | 24 | $table->foreign('parent_id')->references('id')->on('categories'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('transactions', function (Blueprint $table) { |
|
| 16 | + Schema::create('transactions', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->integer('status_id')->unsigned(); |
| 19 | 19 | $table->integer('type_id')->unsigned(); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $table->timestamps(); |
| 28 | 28 | }); |
| 29 | 29 | |
| 30 | - Schema::table('transactions', function (Blueprint $table) { |
|
| 30 | + Schema::table('transactions', function(Blueprint $table) { |
|
| 31 | 31 | $table->foreign('status_id')->references('id')->on('transaction_status'); |
| 32 | 32 | $table->foreign('type_id')->references('id')->on('transaction_types'); |
| 33 | 33 | }); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('accounts', function (Blueprint $table) { |
|
| 16 | + Schema::create('accounts', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name')->unique(); |
| 19 | 19 | $table->timestamps(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('email')->index(); |
| 18 | 18 | $table->string('token')->index(); |
| 19 | 19 | $table->timestamp('created_at')->nullable(); |
@@ -13,14 +13,14 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('payees', function (Blueprint $table) { |
|
| 16 | + Schema::create('payees', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->integer('last_category_id')->unsigned()->nullable(); |
| 19 | 19 | $table->string('name')->unique(); |
| 20 | 20 | $table->timestamps(); |
| 21 | 21 | }); |
| 22 | 22 | |
| 23 | - Schema::table('payees', function (Blueprint $table) { |
|
| 23 | + Schema::table('payees', function(Blueprint $table) { |
|
| 24 | 24 | $table->foreign('last_category_id')->references('id')->on('categories'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -19,8 +19,8 @@ |
||
| 19 | 19 | /* |
| 20 | 20 | * Authenticate the user's personal channel... |
| 21 | 21 | */ |
| 22 | - Broadcast::channel('App.User.*', function ($user, $userId) { |
|
| 23 | - return (int) $user->id === (int) $userId; |
|
| 22 | + Broadcast::channel('App.User.*', function($user, $userId) { |
|
| 23 | + return (int)$user->id === (int)$userId; |
|
| 24 | 24 | }); |
| 25 | 25 | } |
| 26 | 26 | } |