rector: arrrrr

This commit is contained in:
Andras Bacsai
2025-01-07 14:52:08 +01:00
parent c702ebff6d
commit 16c0cd10d8
349 changed files with 4204 additions and 3712 deletions

View File

@@ -34,10 +34,10 @@ class CreateNewUser implements CreatesNewUsers
'password' => ['required', Password::defaults(), 'confirmed'],
])->validate();
if (User::count() == 0) {
if (User::query()->count() == 0) {
// If this is the first user, make them the root user
// Team is already created in the database/seeders/ProductionSeeder.php
$user = User::create([
$user = User::query()->create([
'id' => 0,
'name' => $input['name'],
'email' => strtolower($input['email']),
@@ -50,7 +50,7 @@ class CreateNewUser implements CreatesNewUsers
$settings->is_registration_enabled = false;
$settings->save();
} else {
$user = User::create([
$user = User::query()->create([
'name' => $input['name'],
'email' => strtolower($input['email']),
'password' => Hash::make($input['password']),