Setup pint & run code style fix

This commit is contained in:
gdarko
2024-01-29 04:46:01 -06:00
parent 8de34efd8c
commit 4ab92473e9
406 changed files with 1616 additions and 2026 deletions

View File

@@ -8,36 +8,36 @@ class DateFormatter
{
protected static $formats = [
[
"carbon_format" => "Y M d",
"moment_format" => "YYYY MMM DD",
'carbon_format' => 'Y M d',
'moment_format' => 'YYYY MMM DD',
],
[
"carbon_format" => "d M Y",
"moment_format" => "DD MMM YYYY",
'carbon_format' => 'd M Y',
'moment_format' => 'DD MMM YYYY',
],
[
"carbon_format" => "d/m/Y",
"moment_format" => "DD/MM/YYYY",
'carbon_format' => 'd/m/Y',
'moment_format' => 'DD/MM/YYYY',
],
[
"carbon_format" => "d.m.Y",
"moment_format" => "DD.MM.YYYY",
'carbon_format' => 'd.m.Y',
'moment_format' => 'DD.MM.YYYY',
],
[
"carbon_format" => "d-m-Y",
"moment_format" => "DD-MM-YYYY",
'carbon_format' => 'd-m-Y',
'moment_format' => 'DD-MM-YYYY',
],
[
"carbon_format" => "m/d/Y",
"moment_format" => "MM/DD/YYYY",
'carbon_format' => 'm/d/Y',
'moment_format' => 'MM/DD/YYYY',
],
[
"carbon_format" => "Y/m/d",
"moment_format" => " YYYY/MM/DD",
'carbon_format' => 'Y/m/d',
'moment_format' => ' YYYY/MM/DD',
],
[
"carbon_format" => "Y-m-d",
"moment_format" => "YYYY-MM-DD",
'carbon_format' => 'Y-m-d',
'moment_format' => 'YYYY-MM-DD',
],
];
@@ -47,9 +47,9 @@ class DateFormatter
foreach (static::$formats as $format) {
$new[] = [
"display_date" => Carbon::now()->format($format['carbon_format']) ,
"carbon_format_value" => $format['carbon_format'],
"moment_format_value" => $format['moment_format'],
'display_date' => Carbon::now()->format($format['carbon_format']),
'carbon_format_value' => $format['carbon_format'],
'moment_format_value' => $format['moment_format'],
];
}