fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
+3 -4
View File
@@ -14,16 +14,15 @@ 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),