protected function render(array $versions)
	{
		$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
		<html>
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
				<title>Joomla Framework pull request log</title>
				</head>
			<body>';

		foreach ($versions as $version)
		{
			// Print the version number.
			$html .= PHP_EOL . '	<h1>' . $version . '</h1>';

			// Print out the labelled version of the changelog first.
			$labelled = $this->getBuffer("$version.labelled");

			if ($labelled)
			{
				foreach ($labelled as $label => $links)
				{
					$html .= PHP_EOL . "<h2>$label</h2>";
					$html .= PHP_EOL . '<ul>';

					foreach ($links as $link)
					{
						$html .= PHP_EOL . "<li>$link</li>";
					}

					$html .= PHP_EOL . '</ul>';
				}
			}

			// Print out the detailed version of the changelog.
			$log = $this->getBuffer("$version.log");
			$html .= PHP_EOL . '<h2>The following pull requests made by community contributors were merged:</h2>';
			$html .= PHP_EOL . '<ol>';

			foreach ($log as $issue)
			{
				$html .= PHP_EOL . "<li>$issue</li>";
			}
			$html .= PHP_EOL . '</ol>';

			// Print out the user-pull statistics.
			$userCount = $this->getBuffer("$version.userCount");
			arsort($userCount);
			$pullCount = $this->getBuffer("$version.pullCount");

			$html .= PHP_EOL . sprintf('<h4>%d pull requests.</h4>', $pullCount);
			$html .= PHP_EOL . '<ol>';

			foreach ($userCount as $user => $count)
			{
				$html .= PHP_EOL . sprintf('<li><a href="https://github.com/%1$s">%1$s</a>: %2$d</li>', $user, $count);
			}
			$html .= PHP_EOL . '	</ol>';

			// Print out the admin-merge statistics.
			$mergedBy = $this->getBuffer("$version.mergedBy");
			arsort($mergedBy);

			$html .= PHP_EOL . '<h4>Merged by:</h4>';
			$html .= PHP_EOL . '<ol>';

			foreach ($mergedBy as $user => $count)
			{
				$html .= PHP_EOL . sprintf('<li><a href="https://github.com/%1$s">%1$s</a>: %2$d</li>', $user, $count);
			}
			$html .= PHP_EOL . '</ol>';
		}

		$html .= PHP_EOL . '</body>';
		$html .= PHP_EOL . '</html>';

		return $html;
	}
protected function render(array $versions)
	{
		$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
		<html>
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
				<title>Joomla Framework pull request log</title>
				</head>
			<body>';

		foreach ($versions as $version)
		{
			// Print the version number.
			$html .= PHP_EOL . '	<h1>' . $version . '</h1>';

			// Print out the labelled version of the changelog first.
			$labelled = $this->getBuffer("$version.labelled");

			if ($labelled)
			{
				foreach ($labelled as $label => $links)
				{
					$html .= PHP_EOL . "<h2>$label</h2>";
					$html .= PHP_EOL . '<ul>';

					foreach ($links as $link)
					{
						$html .= PHP_EOL . "<li>$link</li>";
					}

					$html .= PHP_EOL . '</ul>';
				}
			}

			// Print out the detailed version of the changelog.
			$log = $this->getBuffer("$version.log");
			$html .= PHP_EOL . '<h2>The following pull requests made by community contributors were merged:</h2>';
			$html .= PHP_EOL . '<ol>';

			foreach ($log as $issue)
			{
				$html .= PHP_EOL . "<li>$issue</li>";
			}
			$html .= PHP_EOL . '</ol>';

			// Print out the user-pull statistics.
			$userCount = $this->getBuffer("$version.userCount");
			arsort($userCount);
			$pullCount = $this->getBuffer("$version.pullCount");

			$html .= PHP_EOL . sprintf('<h4>%d pull requests.</h4>', $pullCount);
			$html .= PHP_EOL . '<ol>';

			foreach ($userCount as $user => $count)
			{
				$html .= PHP_EOL . sprintf('<li><a href="https://github.com/%1$s">%1$s</a>: %2$d</li>', $user, $count);
			}
			$html .= PHP_EOL . '	</ol>';

			// Print out the admin-merge statistics.
			$mergedBy = $this->getBuffer("$version.mergedBy");
			arsort($mergedBy);

			$html .= PHP_EOL . '<h4>Merged by:</h4>';
			$html .= PHP_EOL . '<ol>';

			foreach ($mergedBy as $user => $count)
			{
				$html .= PHP_EOL . sprintf('<li><a href="https://github.com/%1$s">%1$s</a>: %2$d</li>', $user, $count);
			}
			$html .= PHP_EOL . '</ol>';
		}

		$html .= PHP_EOL . '</body>';
		$html .= PHP_EOL . '</html>';

		return $html;
	}
protected function render ( array $ versions ) { $ html = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
		<html>
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
				<title>Joomla Framework pull request log</title>
				</head>
			<body>' ; foreach ( $ versions as $ version ) { // Print the version number. $ html .= PHP_EOL . '	<h1>' . $ version . '</h1>' ; // Print out the labelled version of the changelog first. $ labelled = $ this -> getBuffer ( "$version.labelled" ) ; if ( $ labelled ) { foreach ( $ labelled as $ label => $ links ) { $ html .= PHP_EOL . "<h2>$label</h2>" ; $ html .= PHP_EOL . '<ul>' ; foreach ( $ links as $ link ) { $ html .= PHP_EOL . "<li>$link</li>" ; } $ html .= PHP_EOL . '</ul>' ; } } // Print out the detailed version of the changelog. $ log = $ this -> getBuffer ( "$version.log" ) ; $ html .= PHP_EOL . '<h2>The following pull requests made by community contributors were merged:</h2>' ; $ html .= PHP_EOL . '<ol>' ; foreach ( $ log as $ issue ) { $ html .= PHP_EOL . "<li>$issue</li>" ; } $ html .= PHP_EOL . '</ol>' ; // Print out the user-pull statistics. $ userCount = $ this -> getBuffer ( "$version.userCount" ) ; arsort ( $ userCount ) ; $ pullCount = $ this -> getBuffer ( "$version.pullCount" ) ; $ html .= PHP_EOL . sprintf ( '<h4>%d pull requests.</h4>' , $ pullCount ) ; $ html .= PHP_EOL . '<ol>' ; foreach ( $ userCount as $ user => $ count ) { $ html .= PHP_EOL . sprintf ( '<li><a href="https://github.com/%1$s">%1$s</a>: %2$d</li>' , $ user , $ count ) ; } $ html .= PHP_EOL . '	</ol>' ; // Print out the admin-merge statistics. $ mergedBy = $ this -> getBuffer ( "$version.mergedBy" ) ; arsort ( $ mergedBy ) ; $ html .= PHP_EOL . '<h4>Merged by:</h4>' ; $ html .= PHP_EOL . '<ol>' ; foreach ( $ mergedBy as $ user => $ count ) { $ html .= PHP_EOL . sprintf ( '<li><a href="https://github.com/%1$s">%1$s</a>: %2$d</li>' , $ user , $ count ) ; } $ html .= PHP_EOL . '</ol>' ; } $ html .= PHP_EOL . '</body>' ; $ html .= PHP_EOL . '</html>' ; return $ html ; }
Renders the output.

@param   array  $versions  An array of the versions to render.

@return  string

@since   12.1
Renders the output .