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
+4 -3
View File
@@ -14,15 +14,16 @@ class PolicyContentService
public function getPolicy(string $type): array
{
$type = strtolower(trim($type));
if (!isset(self::TYPES[$type])) {
if (! isset(self::TYPES[$type])) {
throw new \InvalidArgumentException('Unsupported policy type.');
}
$filename = self::TYPES[$type];
$path = resource_path('policies/' . $filename);
$path = resource_path('policies/'.$filename);
if (!is_file($path)) {
if (! is_file($path)) {
Log::warning('Policy file missing.', ['type' => $type, 'path' => $path]);
return [
'type' => $type,
'title' => $this->titleFor($type),