mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-28 22:09:01 +02:00
lint (#4645)
This commit is contained in:
parent
47c9983e16
commit
e5f9fe6251
2 changed files with 10 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
class WaggaCouncilBridge extends BridgeAbstract {
|
||||
class WaggaCouncilBridge extends BridgeAbstract
|
||||
{
|
||||
const NAME = 'Wagga Wagga Council';
|
||||
const URI = 'https://news.wagga.nsw.gov.au/';
|
||||
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';
|
||||
return urljoin(self::URI, $section);
|
||||
}
|
||||
|
||||
public function collectData(): void {
|
||||
public function collectData(): void
|
||||
{
|
||||
$html = getSimpleHTMLDOM($this->getURI());
|
||||
|
||||
foreach ($html->find('div.container') as $container) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue