/**
  * Render the report
  *
  * @param OutputInterface $output
  * @param Project $project the project related to update status
  * @param $updateStatus the update status
  */
 public function render(OutputInterface $output, Project $project, $updateStatus)
 {
     $table = new Table($output);
     $table->setHeaders(array('Module', 'Installed version', 'Last security update version', 'Last bug fix version'));
     //Drupal core
     if (isset($updateStatus['drupal'])) {
         $coreRow = $this->getRow($updateStatus['drupal']);
         $table->addRow($coreRow);
     }
     $table->addRow(new TableSeparator());
     foreach ($project->getModules() as $module) {
         if (isset($updateStatus['modules'][$module->machineName])) {
             $updateStatusEntry = $updateStatus['modules'][$module->machineName];
             $row = $this->getRow($updateStatusEntry, $module);
             $table->addRow($row);
         }
     }
     $table->render();
 }
 /**
  * Render the report
  *
  * @param OutputInterface $output
  * @param Project $project the project related to update status
  * @param $updateStatus the update status
  */
 public function render(Project $project, $updateStatus)
 {
     $coreTable = '<h1>This is the update status report of your project ' . $project->name . '</h1>';
     $coreTable .= '<table style="border-collapse: collapse; border : 1px solid black">';
     $coreTable .= '<tr style="border : 1px solid black">' . $this->getHeader() . '</tr>';
     //Drupal core
     if (isset($updateStatus['drupal'])) {
         $coreTable .= $this->getRow($updateStatus['drupal']);
     }
     $coreTable .= '</table>';
     $modulesTable = '<table style=" border-collapse: collapse; border : 1px solid black">';
     $modulesTable .= '<tr style="border : 1px solid black">' . $this->getHeader() . '</tr>';
     foreach ($project->getModules() as $module) {
         if (isset($updateStatus['modules'][$module->machineName])) {
             $updateStatusEntry = $updateStatus['modules'][$module->machineName];
             $modulesTable .= $this->getRow($updateStatusEntry, $module);
         }
     }
     $modulesTable .= '</table>';
     return $coreTable . '<br>' . $modulesTable;
 }