. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; use FireflyIII\Support\Request\GetRuleConfiguration; /** * Class TestRuleFormRequest. * * @codeCoverageIgnore */ class TestRuleFormRequest extends LoggedInRequest { use GetRuleConfiguration; /** * Rules for this request. * TODO these rules are not valid anymore. * * @return array */ public function rules(): array { // fixed $validTriggers = $this->getTriggers(); $rules = [ 'rule-trigger.*' => 'required|min:1|in:' . implode(',', $validTriggers), 'rule-trigger-value.*' => 'required|min:1|ruleTriggerValue', ]; return $rules; } }