mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 00:27:27 +02:00
lint (#4645)
This commit is contained in:
@@ -36,7 +36,7 @@ class ExplosmBridge extends BridgeAbstract
|
|||||||
$html = getSimpleHTMLDOM($url);
|
$html = getSimpleHTMLDOM($url);
|
||||||
|
|
||||||
$element = $html->find('[class*=ComicImage]', 0);
|
$element = $html->find('[class*=ComicImage]', 0);
|
||||||
if(!$element) {
|
if (!$element) {
|
||||||
break; // skip, if element was not found
|
break; // skip, if element was not found
|
||||||
}
|
}
|
||||||
$date = $element->find('[class^=Author__Right] p', 0)->plaintext;
|
$date = $element->find('[class^=Author__Right] p', 0)->plaintext;
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class WaggaCouncilBridge extends BridgeAbstract {
|
class WaggaCouncilBridge extends BridgeAbstract
|
||||||
|
{
|
||||||
const NAME = 'Wagga Wagga Council';
|
const NAME = 'Wagga Wagga Council';
|
||||||
const URI = 'https://news.wagga.nsw.gov.au/';
|
const URI = 'https://news.wagga.nsw.gov.au/';
|
||||||
const DESCRIPTION = 'Wagga Wagga Council updates';
|
const DESCRIPTION = 'Wagga Wagga Council updates';
|
||||||
@@ -25,12 +26,14 @@ class WaggaCouncilBridge extends BridgeAbstract {
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
public function getURI(): string {
|
public function getURI(): string
|
||||||
|
{
|
||||||
$section = $this->getInput('section') ?: 'council';
|
$section = $this->getInput('section') ?: 'council';
|
||||||
return urljoin(self::URI, $section);
|
return urljoin(self::URI, $section);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function collectData(): void {
|
public function collectData(): void
|
||||||
|
{
|
||||||
$html = getSimpleHTMLDOM($this->getURI());
|
$html = getSimpleHTMLDOM($this->getURI());
|
||||||
|
|
||||||
foreach ($html->find('div.container') as $container) {
|
foreach ($html->find('div.container') as $container) {
|
||||||
|
Reference in New Issue
Block a user