phpbb\console\command\update\check::display_versions PHP Method

display_versions() protected method

Display the details of the available updates
protected display_versions ( SymfonyStyle $io, array $updates_available )
$io Symfony\Component\Console\Style\SymfonyStyle IO handler, for formatted and unified IO
$updates_available array The list of the available updates
    protected function display_versions(SymfonyStyle $io, $updates_available)
    {
        $io->section($this->language->lang('UPDATES_AVAILABLE'));
        $rows = [];
        foreach ($updates_available as $version_data) {
            $row = ['', '', ''];
            $row[0] = $version_data['current'];
            if (isset($version_data['announcement'])) {
                $row[1] = $version_data['announcement'];
            }
            if (isset($version_data['download'])) {
                $row[2] = $version_data['download'];
            }
            $rows[] = $row;
        }
        $io->table([$this->language->lang('VERSION'), $this->language->lang('ANNOUNCEMENT_TOPIC'), $this->language->lang('DOWNLOAD_LATEST')], $rows);
    }