Code Duplication    Length = 11-11 lines in 2 locations

src/Entity/Game.php 2 locations

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