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
@@ -15,9 +15,7 @@ use RuntimeException;
*/
class PromotionStatusService
{
public function __construct(private PromotionAuditService $audit)
{
}
public function __construct(private PromotionAuditService $audit) {}
/**
* Map of allowed transitions from current → set of next statuses.
@@ -80,10 +78,11 @@ class PromotionStatusService
if ($from === $to) {
return true;
}
if (!in_array($to, StudentPromotionRecord::ALL_STATUSES, true)) {
if (! in_array($to, StudentPromotionRecord::ALL_STATUSES, true)) {
return false;
}
$allowed = self::ALLOWED_TRANSITIONS[$from] ?? [];
return in_array($to, $allowed, true);
}
@@ -98,7 +97,7 @@ class PromotionStatusService
?int $userId = null,
?string $notes = null
): StudentPromotionRecord {
if (!in_array($newStatus, StudentPromotionRecord::ALL_STATUSES, true)) {
if (! in_array($newStatus, StudentPromotionRecord::ALL_STATUSES, true)) {
throw new InvalidArgumentException(sprintf('Unknown promotion status "%s".', $newStatus));
}
@@ -106,7 +105,7 @@ class PromotionStatusService
if ($oldStatus === $newStatus) {
return $record;
}
if (!$this->canTransition($oldStatus, $newStatus)) {
if (! $this->canTransition($oldStatus, $newStatus)) {
throw new RuntimeException(sprintf(
'Transition from "%s" to "%s" is not allowed.',
$oldStatus,
@@ -135,7 +134,7 @@ class PromotionStatusService
?int $userId = null,
?string $notes = null
): StudentPromotionRecord {
if (!in_array($newStatus, StudentPromotionRecord::ALL_STATUSES, true)) {
if (! in_array($newStatus, StudentPromotionRecord::ALL_STATUSES, true)) {
throw new InvalidArgumentException(sprintf('Unknown promotion status "%s".', $newStatus));
}