Code Duplication    Length = 9-9 lines in 2 locations

src/Controller/CrudTrait.php 2 locations

@@ 448-456 (lines=9) @@
445
     *
446
     * @return bool
447
     */
448
    protected function crudCreateIsSubmitted($object, FormInterface $form, Request $request)
449
    {
450
        $buttonName = $this->crudCreateButtonName();
451
        if (null !== $buttonName && !$form->get($buttonName)->isClicked()) {
452
            return false;
453
        }
454
455
        return true;
456
    }
457
458
    /**
459
     * @return string|null
@@ 612-620 (lines=9) @@
609
     *
610
     * @return bool
611
     */
612
    protected function crudEditIsSubmitted($object, FormInterface $form, Request $request)
613
    {
614
        $buttonName = $this->crudEditButtonName();
615
        if (null !== $buttonName && !$form->get($buttonName)->isClicked()) {
616
            return false;
617
        }
618
619
        return true;
620
    }
621
622
    /**
623
     * @return string|null