mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-31 23:39:56 +02:00
Improve Factory variable names (#2895)
This commit is contained in:
parent
e3dad86bca
commit
d107f8ed30
18 changed files with 59 additions and 59 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue