diff --git a/app/Http/Controllers/AlertRuleTemplateController.php b/app/Http/Controllers/AlertRuleTemplateController.php index 2a928667fe8d..39c3681db6df 100644 --- a/app/Http/Controllers/AlertRuleTemplateController.php +++ b/app/Http/Controllers/AlertRuleTemplateController.php @@ -12,7 +12,7 @@ public function index(): JsonResponse { $collection = self::templatesCollection(); - return response()->json(collect($collection)->map(fn($rule, $index) => [ + return response()->json(collect($collection)->map(fn ($rule, $index) => [ 'id' => $index, 'name' => $rule['name'], 'builder' => $rule['builder'] ?? null,