Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-08 23:30:22 -04:00
parent 567dc24649
commit c792b8be05
1288 changed files with 10766 additions and 9669 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),