Code Duplication    Length = 7-7 lines in 2 locations

src/Controller/CrudTrait.php 2 locations

@@ 493-499 (lines=7) @@
490
     *
491
     * @return RedirectResponse|Response
492
     */
493
    protected function crudCreateSuccessResponse($object, FormInterface $form, Request $request)
494
    {
495
        $identifierMethod = $this->crudIdentifierMethod();
496
        $url = $this->crudGenerateRoute($this->crudEditRoute(), array('id' => $object->$identifierMethod()));
497
498
        return new RedirectResponse($url, 302);
499
    }
500
501
    /**
502
     * @param object        $object
@@ 657-663 (lines=7) @@
654
     *
655
     * @return RedirectResponse|Response
656
     */
657
    protected function crudEditSuccessResponse($object, FormInterface $form, Request $request)
658
    {
659
        $identifierMethod = $this->crudIdentifierMethod();
660
        $url = $this->crudGenerateRoute($this->crudEditRoute(), array('id' => $object->$identifierMethod()));
661
662
        return new RedirectResponse($url, 302);
663
    }
664
665
    /**
666
     * @param object        $object