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