コード例 #1
0
ファイル: Game.php プロジェクト: joaoB/pagaS
 private function wasCorrectResultTip(\AppBundle\Entity\Game $g, $home, $away)
 {
     if ($g->getHomeWin() > $g->getAwayWin() && $g->getHomeWin() > $g->getDraws() && $home > $away) {
         return true;
     }
     if ($g->getAwayWin() > $g->getHomeWin() && $g->getAwayWin() > $g->getDraws() && $away > $home) {
         return true;
     }
     if ($g->getDraws() > $g->getHomeWin() && $g->getDraws() > $g->getAwayWin() && $away == $home) {
         return true;
     }
     return false;
 }