Code Duplication    Length = 12-12 lines in 2 locations

src/Entity/Game.php 2 locations

@@ 950-961 (lines=12) @@
947
        return !$this->isClosed();
948
    }
949
950
    public function isStarted()
951
    {
952
        $today = new DateTime('now');
953
        if (((!$this->getStartDate() || $this->getStartDate() <= $today))
954
            && (!$this->getEndDate() || $this->getEndDate() > $today)
955
        ) {
956
            return true;
957
        }
958
959
        return false;
960
    }
961
962
    public function isFinished()
963
    {
964
        $today = new DateTime('now');
@@ 962-973 (lines=12) @@
959
        return false;
960
    }
961
962
    public function isFinished()
963
    {
964
        $today = new DateTime('now');
965
        if ($this->getEndDate() && $this->getEndDate() <= $today
966
            ||
967
            ($this->getCloseDate() && $this->getCloseDate() <= $today)
968
        ) {
969
            return true;
970
        }
971
972
        return false;
973
    }
974
975
    public function isOnline()
976
    {