Code Duplication    Length = 12-13 lines in 2 locations

src/PlaygroundGame/Entity/Game.php 2 locations

@@ 858-869 (lines=12) @@
855
    }
856
857
    // json array : {"0":"index","1":"play","2":"result","3":"bounce"}
858
    public function getStepsArray()
859
    {
860
        $steps = null;
861
862
        if ($this->getSteps()) {
863
            $steps = json_decode($this->getSteps(), true);
864
        }
865
        if (!$steps) {
866
            $steps = array('index','play','result','bounce');
867
        }
868
        return $steps;
869
    }
870
871
872
@@ 873-885 (lines=13) @@
870
871
872
873
    public function getStepsViewsArray()
874
    {
875
        $viewSteps = null;
876
877
        if ($this->getStepsViews()) {
878
            $viewSteps = json_decode($this->getStepsViews(), true);
879
        }
880
        if (!$viewSteps) {
881
            $viewSteps = array('index','play','result','bounce');
882
        }
883
884
        return $viewSteps;
885
    }
886
887
    public function getSteps()
888
    {