Code Duplication    Length = 12-12 lines in 2 locations

src/Entity/Game.php 2 locations

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