mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 11:32:44 +00:00
lint
This commit is contained in:
parent
20ebd34948
commit
2a45eb2178
3 changed files with 2 additions and 3 deletions
|
@ -120,7 +120,6 @@ class SlusheBridge extends BridgeAbstract
|
||||||
|
|
||||||
//Loop on each entry
|
//Loop on each entry
|
||||||
foreach ($html->find('div.blog-item') as $element) {
|
foreach ($html->find('div.blog-item') as $element) {
|
||||||
|
|
||||||
$title = $element->find('h3.title', 0)->first_child()->innertext;
|
$title = $element->find('h3.title', 0)->first_child()->innertext;
|
||||||
$article_uri = $element->find('h3.title', 0)->first_child()->href;
|
$article_uri = $element->find('h3.title', 0)->first_child()->href;
|
||||||
$timestamp = $element->find('div.publication-date', 0)->innertext;
|
$timestamp = $element->find('div.publication-date', 0)->innertext;
|
||||||
|
|
|
@ -547,7 +547,6 @@ QUOTE;
|
||||||
|
|
||||||
// Add External Link HTML, if relevant
|
// Add External Link HTML, if relevant
|
||||||
if (isset($extURL) && !$this->getInput('noexternallink')) {
|
if (isset($extURL) && !$this->getInput('noexternallink')) {
|
||||||
|
|
||||||
$ext_html = <<<EXTERNAL
|
$ext_html = <<<EXTERNAL
|
||||||
<div style="display: table; border-style: solid; border-width: 1px; border-radius: 5px; padding: 5px;">
|
<div style="display: table; border-style: solid; border-width: 1px; border-radius: 5px; padding: 5px;">
|
||||||
$ext_media_html<br>
|
$ext_media_html<br>
|
||||||
|
|
|
@ -100,7 +100,8 @@ final class RssBridge
|
||||||
|
|
||||||
public static function getLogger(): Logger
|
public static function getLogger(): Logger
|
||||||
{
|
{
|
||||||
return self::$logger;
|
// null logger is only for the tests not to fail
|
||||||
|
return self::$logger ?? new NullLogger();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getCache(): CacheInterface
|
public static function getCache(): CacheInterface
|
||||||
|
|
Loading…
Reference in a new issue