1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 08:37:30 +02:00

Improve Factory variable names (#2895)

This commit is contained in:
Jan Tojnar
2022-07-06 12:14:04 +02:00
committed by GitHub
parent e3dad86bca
commit d107f8ed30
18 changed files with 59 additions and 59 deletions

View File

@@ -13,12 +13,12 @@ class HtmlFormat extends FormatAbstract
$donationsAllowed = Configuration::getConfig('admin', 'donations');
// Dynamically build buttons for all formats (except HTML)
$formatFac = new FormatFactory();
$formatFactory = new FormatFactory();
$buttons = '';
$links = '';
foreach ($formatFac->getFormatNames() as $format) {
foreach ($formatFactory->getFormatNames() as $format) {
if (strcasecmp($format, 'HTML') === 0) {
continue;
}
@@ -26,7 +26,7 @@ class HtmlFormat extends FormatAbstract
$query = str_ireplace('format=Html', 'format=' . $format, htmlentities($_SERVER['QUERY_STRING']));
$buttons .= $this->buildButton($format, $query) . PHP_EOL;
$mime = $formatFac->create($format)->getMimeType();
$mime = $formatFactory->create($format)->getMimeType();
$links .= $this->buildLink($format, $query, $mime) . PHP_EOL;
}