Code Duplication    Length = 12-12 lines in 2 locations

module/Admin/src/Admin/Controller/ZfcuserController.php 2 locations

@@ 619-630 (lines=12) @@
616
617
        $form->bind($oUser);
618
    
619
        if (!$this->getRequest()->isPost() ) {
620
            
621
            return new ViewModel(
622
                array(
623
                    'showForm'        => true,
624
                    'user'            => $oIdentity,
625
                    'userId'          => $userId,
626
                    'userdataForm'    => $form,
627
                )
628
            );
629
            
630
        }
631
        
632
        $data = (array)$this->params()->fromPost();
633
        $form->setData($data);
@@ 661-672 (lines=12) @@
658
                $translator->translate("user data has been changed")
659
            );
660
661
            if ($this->getRequest()->isXmlHttpRequest() ) {
662
                return new ViewModel(
663
                    array(
664
                    'showForm'      => false,
665
                    'user'            => $oIdentity,
666
                    'userId'        => $userId,
667
                    'userdataForm'    => $form,
668
                    )
669
                );
670
            } else {
671
                return $this->redirect()->toRoute('zfcuser');
672
            }
673
    
674
        }
675