Code Duplication    Length = 12-12 lines in 2 locations

src/Entity/Game.php 2 locations

@@ 840-851 (lines=12) @@
837
        return !$this->isClosed();
838
    }
839
840
    public function isStarted()
841
    {
842
        $today = new DateTime('now');
843
        if (((!$this->getStartDate() || $this->getStartDate() <= $today))
844
                &&
845
                (!$this->getEndDate() || $this->getEndDate() > $today)
846
        ) {
847
            return true;
848
        }
849
850
        return false;
851
    }
852
853
    public function isFinished()
854
    {
@@ 853-864 (lines=12) @@
850
        return false;
851
    }
852
853
    public function isFinished()
854
    {
855
        $today = new DateTime('now');
856
        if ($this->getEndDate() && $this->getEndDate() <= $today
857
            ||
858
            ($this->getCloseDate() && $this->getCloseDate() <= $today)
859
        ) {
860
            return true;
861
        }
862
863
        return false;
864
    }
865
866
    public function isOnline()
867
    {