Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-09 00:03:03 -04:00
parent 8d4d610b82
commit b5fd4a4ca1
1414 changed files with 11317 additions and 10201 deletions
+3 -6
View File
@@ -3,7 +3,6 @@
namespace App\Services\Roles;
use App\Models\Role;
use App\Models\Staff;
use App\Models\User;
use App\Models\UserRole;
use Illuminate\Support\Facades\DB;
@@ -11,9 +10,7 @@ use Illuminate\Support\Facades\Log;
class RoleAssignmentService
{
public function __construct(private RoleStaffService $staffService)
{
}
public function __construct(private RoleStaffService $staffService) {}
/** @param int[] $roleIds */
public function assignRoles(int $userId, array $roleIds, ?int $adminId = null): array
@@ -21,7 +18,7 @@ class RoleAssignmentService
$roleIds = array_values(array_unique(array_filter(array_map('intval', $roleIds), fn ($id) => $id > 0)));
$user = User::query()->find($userId);
if (!$user) {
if (! $user) {
return ['ok' => false, 'message' => 'User not found.'];
}
@@ -38,7 +35,7 @@ class RoleAssignmentService
}
});
} catch (\Throwable $e) {
Log::error('Role assignment failed: ' . $e->getMessage());
Log::error('Role assignment failed: '.$e->getMessage());
throw $e;
}