Fix Pint formatting
This commit is contained in:
@@ -15,6 +15,7 @@ class ClassProgressRuleService
|
||||
public function normalizeFlags($flags): ?array
|
||||
{
|
||||
$values = array_values(array_filter((array) $flags, static fn ($item) => $item !== '' && $item !== null));
|
||||
|
||||
return $values === [] ? null : $values;
|
||||
}
|
||||
|
||||
@@ -80,6 +81,7 @@ class ClassProgressRuleService
|
||||
try {
|
||||
$dt = new \DateTime($weekStart);
|
||||
$dt->modify('+6 days');
|
||||
|
||||
return $dt->format('Y-m-d');
|
||||
} catch (\Exception $e) {
|
||||
return $weekStart;
|
||||
|
||||
Reference in New Issue
Block a user