/** * @param Feedback $feedback * * @return bool */ public function hasFeedbackFromProjectConsortium(Feedback $feedback) { return strlen($feedback->getEvaluationFeedback()) > 12 && strlen($feedback->getReviewFeedback()) > 0; }
/** * @param Feedback $feedback * * @return array */ private function parseProjectReviewEvaluation(Feedback $feedback) { $rows = []; $cols = []; $cols['dt'] = ['width' => 4500, 'align' => '']; $cols['dd'] = ['width' => $this->tableWidth - 4500, 'align' => '']; $rows[] = ['dt' => "Mandatory improvements", 'dd' => "Recommended improvements"]; $rows[] = ['dt' => $feedback->getMandatoryImprovements(), 'dd' => $feedback->getRecommendedImprovements()]; return ['cols' => $cols, 'rows' => $rows]; }