Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2024-01-19 20:03:40 +00:00
parent cf674850dd
commit cf4260e5f9
52 changed files with 662 additions and 217 deletions

View File

@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
@@ -24,11 +33,11 @@ class UserFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
];
}

View File

@@ -1,11 +1,19 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
return new class() extends Migration {
/**
* Run the migrations.
*/

View File

@@ -1,11 +1,19 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
return new class() extends Migration {
/**
* Run the migrations.
*/

View File

@@ -1,11 +1,19 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
return new class() extends Migration {
/**
* Run the migrations.
*/

View File

@@ -1,11 +1,19 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
return new class() extends Migration {
/**
* Run the migrations.
*/

View File

@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
@@ -14,10 +23,10 @@ class DatabaseSeeder extends Seeder
{
// \App\Models\User::factory(10)->create();
\App\Models\User::factory()->create([
// 'name' => 'Test User',
'email' => 'test@test.com',
'password' => bcrypt('test123'),
]);
\App\Models\User::factory()->create([
// 'name' => 'Test User',
'email' => 'test@test.com',
'password' => bcrypt('test123'),
]);
}
}