Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 731-744 (lines=14) @@
728
     * get the form before the actual active
729
     * @return null
730
     */
731
    public function getActiveFormPrevious()
732
    {
733
        $key = null;
734
        $actualKey = $this->getActiveFormActual();
735
        if (isset($actualKey)) {
736
            $forms = array_keys($this->forms);
737
            $formsFlip =  array_flip($forms);
738
            $index = $formsFlip[$actualKey];
739
            if (0 < $index) {
740
                $key = $forms[$index-1];
741
            }
742
        }
743
        return $key;
744
    }
745
746
747
    /**
@@ 751-764 (lines=14) @@
748
     * Gets the form after the actual active
749
     * @return null
750
     */
751
    public function getActiveFormNext()
752
    {
753
        $key = null;
754
        $actualKey = $this->getActiveFormActual();
755
        if (isset($actualKey)) {
756
            $forms = array_keys($this->forms);
757
            $formsFlip =  array_flip($forms);
758
            $index = $formsFlip[$actualKey];
759
            if ($index < count($forms) - 1) {
760
                $key = $forms[$index+1];
761
            }
762
        }
763
        return $key;
764
    }
765
766
    /**
767
     * @param $key