Code Duplication    Length = 14-14 lines in 2 locations

module/Core/src/Core/Form/Container.php 2 locations

@@ 742-755 (lines=14) @@
739
     * get the form before the actual active
740
     * @return null
741
     */
742
    public function getActiveFormPrevious()
743
    {
744
        $key = null;
745
        $actualKey = $this->getActiveFormActual();
746
        if (isset($actualKey)) {
747
            $forms = array_keys($this->forms);
748
            $formsFlip =  array_flip($forms);
749
            $index = $formsFlip[$actualKey];
750
            if (0 < $index) {
751
                $key = $forms[$index-1];
752
            }
753
        }
754
        return $key;
755
    }
756
757
758
    /**
@@ 762-775 (lines=14) @@
759
     * Gets the form after the actual active
760
     * @return null
761
     */
762
    public function getActiveFormNext()
763
    {
764
        $key = null;
765
        $actualKey = $this->getActiveFormActual();
766
        if (isset($actualKey)) {
767
            $forms = array_keys($this->forms);
768
            $formsFlip =  array_flip($forms);
769
            $index = $formsFlip[$actualKey];
770
            if ($index < count($forms) - 1) {
771
                $key = $forms[$index+1];
772
            }
773
        }
774
        return $key;
775
    }
776
    
777
    /**
778
     * Format an action name