update php-cs-fixer config & apply fixes

This commit is contained in:
Pig Fang 2023-01-16 23:15:41 +08:00
parent 64dea61ec9
commit eff859a864
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
4 changed files with 31 additions and 26 deletions

View File

@ -14,5 +14,10 @@ return $config->setRules([
'increment_style' => ['style' => 'post'],
'list_syntax' => ['syntax' => 'short'],
'yoda_style' => false,
'global_namespace_import' => [
'import_constants' => true,
'import_functions' => true,
'import_classes' => null,
],
])
->setFinder($finder);

View File

@ -53,7 +53,7 @@ class AdminController extends Controller
$grouping = fn ($field) => fn ($item) => Carbon::parse($item->$field)->isoFormat('l');
$mapping = fn ($item) => count($item);
$aligning = fn ($data) => fn ($day) => ($data->get($day) ?? 0);
$aligning = fn ($data) => fn ($day) => $data->get($day) ?? 0;
/** @var Collection */
$userRegistration = User::where('register_at', '>=', $oneMonthAgo)