style updates

This commit is contained in:
Mark Gregory
2026-07-24 14:59:44 +01:00
parent 24ab771cd3
commit dd23205d0b
482 changed files with 7173 additions and 1435 deletions
@@ -1,16 +1,23 @@
<?php
namespace Modules\Automation\Services;
use Modules\Automation\Contracts\TriggerRegistry;
final class AutomationTriggerRegistry implements TriggerRegistry
{
public function all(): array
{
return [
'manual'=>['label'=>'Manual','description'=>'Run from the administration area or API.'],
'schedule'=>['label'=>'Schedule','description'=>'Run when next_run_at is due.'],
'webhook'=>['label'=>'Incoming webhook','description'=>'Run from a signed API request.'],
'domain_event'=>['label'=>'Domain event','description'=>'Run when an application event is dispatched.'],
'manual' => ['label' => 'Manual', 'description' => 'Run from the administration area or API.'],
'schedule' => ['label' => 'Schedule', 'description' => 'Run when next_run_at is due.'],
'webhook' => ['label' => 'Incoming webhook', 'description' => 'Run from a signed API request.'],
'domain_event' => ['label' => 'Domain event', 'description' => 'Run when an application event is dispatched.'],
];
}
public function has(string $type): bool { return array_key_exists($type,$this->all()); }
public function has(string $type): bool
{
return array_key_exists($type, $this->all());
}
}