Code Duplication    Length = 11-11 lines in 2 locations

src/Entity/Game.php 2 locations

@@ 950-960 (lines=11) @@
947
     * @param string $step
948
     * @return string
949
     */
950
    public function previousStep($step = null)
951
    {
952
        $steps = $this->getStepsArray();
953
        $key = array_search($step, $steps);
954
955
        if (is_int($key) && $key > 0) {
956
            return $steps[$key-1];
957
        }
958
959
        return false;
960
    }
961
962
    /**
963
     * This method returns the next step in the game workflow
@@ 967-977 (lines=11) @@
964
     * @param string $step
965
     * @return string
966
     */
967
    public function nextStep($step = null)
968
    {
969
        $steps = $this->getStepsArray();
970
        $key = array_search($step, $steps);
971
972
        if (is_int($key) && $key < count($steps)-1) {
973
            return $steps[$key+1];
974
        }
975
976
        return false;
977
    }
978
979
    /**
980
     * @return string $stepsViews