Code Duplication    Length = 12-13 lines in 2 locations

src/Entity/Game.php 2 locations

@@ 876-887 (lines=12) @@
873
    }
874
875
    // json array : {"0":"index","1":"play","2":"result","3":"bounce"}
876
    public function getStepsArray()
877
    {
878
        $steps = null;
879
880
        if ($this->getSteps()) {
881
            $steps = json_decode($this->getSteps(), true);
882
        }
883
        if (!$steps) {
884
            $steps = array('index','play','result','bounce');
885
        }
886
        return $steps;
887
    }
888
889
890
@@ 891-903 (lines=13) @@
888
889
890
891
    public function getStepsViewsArray()
892
    {
893
        $viewSteps = null;
894
895
        if ($this->getStepsViews()) {
896
            $viewSteps = json_decode($this->getStepsViews(), true);
897
        }
898
        if (!$viewSteps) {
899
            $viewSteps = array('index','play','result','bounce');
900
        }
901
902
        return $viewSteps;
903
    }
904
905
    public function getSteps()
906
    {