@@ -5,25 +5,25 @@ |
||
| 5 | 5 | |
| 6 | 6 | class Kernel extends ConsoleKernel { |
| 7 | 7 | |
| 8 | - /** |
|
| 9 | - * The Artisan commands provided by your application. |
|
| 10 | - * |
|
| 11 | - * @var array |
|
| 12 | - */ |
|
| 13 | - protected $commands = [ |
|
| 14 | - 'App\Console\Commands\Inspire', |
|
| 15 | - ]; |
|
| 8 | + /** |
|
| 9 | + * The Artisan commands provided by your application. |
|
| 10 | + * |
|
| 11 | + * @var array |
|
| 12 | + */ |
|
| 13 | + protected $commands = [ |
|
| 14 | + 'App\Console\Commands\Inspire', |
|
| 15 | + ]; |
|
| 16 | 16 | |
| 17 | - /** |
|
| 18 | - * Define the application's command schedule. |
|
| 19 | - * |
|
| 20 | - * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
| 21 | - * @return void |
|
| 22 | - */ |
|
| 23 | - protected function schedule(Schedule $schedule) |
|
| 24 | - { |
|
| 25 | - $schedule->command('inspire') |
|
| 26 | - ->hourly(); |
|
| 27 | - } |
|
| 17 | + /** |
|
| 18 | + * Define the application's command schedule. |
|
| 19 | + * |
|
| 20 | + * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 23 | + protected function schedule(Schedule $schedule) |
|
| 24 | + { |
|
| 25 | + $schedule->command('inspire') |
|
| 26 | + ->hourly(); |
|
| 27 | + } |
|
| 28 | 28 | |
| 29 | 29 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | | database. Just tell the factory how a default model should look. |
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | -$factory->define(\App\Models\User::class, function (\Faker\Generator $faker) { |
|
| 13 | +$factory->define(\App\Models\User::class, function(\Faker\Generator $faker) { |
|
| 14 | 14 | return [ |
| 15 | 15 | 'name' => $faker->name, |
| 16 | 16 | 'email' => $faker->email, |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('users', function (Blueprint $table) { |
|
| 15 | + Schema::create('users', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name')->nullable(); |
| 18 | 18 | $table->string('email')->unique()->nullable(); // Unique constraints can be Nullable, its SQL-92 compatible |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('nested_entities', function (Blueprint $table) { |
|
| 15 | + Schema::create('nested_entities', function(Blueprint $table) { |
|
| 16 | 16 | $table->engine = 'InnoDb'; |
| 17 | 17 | |
| 18 | 18 | $table->mediumInteger('id', true, true); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | $reminder = app('sentinel.reminders')->create($event->user); |
| 13 | 13 | $token = $reminder->code; |
| 14 | 14 | $view = config('auth.password.email'); |
| 15 | - app('mailer')->send($view, compact('user', 'token'), function (Message $m) use ($user, $token) { |
|
| 15 | + app('mailer')->send($view, compact('user', 'token'), function(Message $m) use ($user, $token) { |
|
| 16 | 16 | $m->to($user->email)->subject($this->getPasswordResetEmailSubject()); |
| 17 | 17 | }); |
| 18 | 18 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('files_users', function (Blueprint $table) { |
|
| 15 | + Schema::create('files_users', function(Blueprint $table) { |
|
| 16 | 16 | $table->engine = 'InnoDb'; |
| 17 | 17 | $table->string('file_hash', 64); |
| 18 | 18 | $table->unsignedInteger('user_id'); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function down() |
| 35 | 35 | { |
| 36 | - Schema::table('files_users', function (Blueprint $table) { |
|
| 36 | + Schema::table('files_users', function(Blueprint $table) { |
|
| 37 | 37 | $table->dropForeign('files_users_file_hash_foreign'); |
| 38 | 38 | $table->dropForeign('files_users_user_id_foreign'); |
| 39 | 39 | }); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('users_oauth', function (Blueprint $table) { |
|
| 15 | + Schema::create('users_oauth', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->unsignedInteger('user_id'); |
| 18 | 18 | $table->string('remote_provider', 32); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function down() |
| 36 | 36 | { |
| 37 | - Schema::table('users_oauth', function (Blueprint $table) { |
|
| 37 | + Schema::table('users_oauth', function(Blueprint $table) { |
|
| 38 | 38 | $table->dropForeign('users_oauth_user_id_foreign'); |
| 39 | 39 | }); |
| 40 | 40 | Schema::drop('users_oauth'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('files', function (Blueprint $table) { |
|
| 15 | + Schema::create('files', function(Blueprint $table) { |
|
| 16 | 16 | $table->engine = 'InnoDb'; |
| 17 | 17 | |
| 18 | 18 | $table->integer('id', true, true); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | $app = new Illuminate\Foundation\Application( |
| 15 | - realpath(__DIR__ . '/../') |
|
| 15 | + realpath(__DIR__.'/../') |
|
| 16 | 16 | ); |
| 17 | 17 | |
| 18 | 18 | /* |