Code Duplication    Length = 12-13 lines in 2 locations

src/Entity/Game.php 2 locations

@@ 902-913 (lines=12) @@
899
    }
900
901
    // json array : {"0":"index","1":"play","2":"result","3":"bounce"}
902
    public function getStepsArray()
903
    {
904
        $steps = null;
905
906
        if ($this->getSteps()) {
907
            $steps = json_decode($this->getSteps(), true);
908
        }
909
        if (!$steps) {
910
            $steps = array('index','play','result','bounce');
911
        }
912
        return $steps;
913
    }
914
915
916
@@ 917-929 (lines=13) @@
914
915
916
917
    public function getStepsViewsArray()
918
    {
919
        $viewSteps = null;
920
921
        if ($this->getStepsViews()) {
922
            $viewSteps = json_decode($this->getStepsViews(), true);
923
        }
924
        if (!$viewSteps) {
925
            $viewSteps = array('index','play','result','bounce');
926
        }
927
928
        return $viewSteps;
929
    }
930
931
    public function getSteps()
932
    {