protected function updateRecordStats(Record $record, $score)
    {
        $record->setAvgScore(
            (($record->getAvgScore() * $record->getNbFinish()) + $score) / ($record->getNbFinish() + 1)
        );
        $record->setNbFinish($record->getNbFinish() + 1);
    }
protected function updateRecordStats(Record $record, $score)
    {
        $record->setAvgScore(
            (($record->getAvgScore() * $record->getNbFinish()) + $score) / ($record->getNbFinish() + 1)
        );
        $record->setNbFinish($record->getNbFinish() + 1);
    }
protected function updateRecordStats ( Record $ record , $ score ) { $ record -> setAvgScore ( ( ( $ record -> getAvgScore ( ) * $ record -> getNbFinish ( ) ) + $ score ) / ( $ record -> getNbFinish ( ) + 1 ) ) ; $ record -> setNbFinish ( $ record -> getNbFinish ( ) + 1 ) ; }
Update Records statistics.

@param Record         $record
@param        integer $score
Update Records statistics .