Code Duplication    Length = 11-11 lines in 2 locations

src/Entity/Game.php 2 locations

@@ 1050-1060 (lines=11) @@
1047
     * @param string $step
1048
     * @return string
1049
     */
1050
    public function previousStep($step = null)
1051
    {
1052
        $steps = $this->getStepsArray();
1053
        $key = array_search($step, $steps);
1054
1055
        if (is_int($key) && $key > 0) {
1056
            return $steps[$key-1];
1057
        }
1058
1059
        return false;
1060
    }
1061
1062
    /**
1063
     * This method returns the next step in the game workflow
@@ 1067-1077 (lines=11) @@
1064
     * @param string $step
1065
     * @return string
1066
     */
1067
    public function nextStep($step = null)
1068
    {
1069
        $steps = $this->getStepsArray();
1070
        $key = array_search($step, $steps);
1071
1072
        if (is_int($key) && $key < count($steps)-1) {
1073
            return $steps[$key+1];
1074
        }
1075
1076
        return false;
1077
    }
1078
1079
    /**
1080
     * @return string $stepsViews