Code Duplication    Length = 5-5 lines in 2 locations

src/Actions/Interactor/Form.php 2 locations

@@ 394-398 (lines=5) @@
391
     */
392
    public function validate(Request $request)
393
    {
394
        if ($this->action instanceof RowAction) {
395
            call_user_func([$this->action, 'form'], $this->action->getRow());
396
        } else {
397
            call_user_func([$this->action, 'form']);
398
        }
399
400
        $failedValidators = [];
401
@@ 608-612 (lines=5) @@
605
     */
606
    protected function buildActionPromise()
607
    {
608
        if ($this->action instanceof RowAction) {
609
            call_user_func([$this->action, 'form'], $this->action->getRow());
610
        } else {
611
            call_user_func([$this->action, 'form']);
612
        }
613
614
        $this->addModalHtml();
615