mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 12:04:09 +02:00
Reformat codebase v4 (#2872)
Reformat code base to PSR12 Co-authored-by: rssbridge <noreply@github.com>
This commit is contained in:
@@ -1,22 +1,25 @@
|
||||
<?php
|
||||
class TheWhiteboardBridge extends BridgeAbstract {
|
||||
const NAME = 'The Whiteboard';
|
||||
const URI = 'https://www.the-whiteboard.com/';
|
||||
const DESCRIPTION = 'Get the latest comic from The Whiteboard';
|
||||
const MAINTAINER = 'CyberJacob';
|
||||
|
||||
public function collectData() {
|
||||
$item = array();
|
||||
class TheWhiteboardBridge extends BridgeAbstract
|
||||
{
|
||||
const NAME = 'The Whiteboard';
|
||||
const URI = 'https://www.the-whiteboard.com/';
|
||||
const DESCRIPTION = 'Get the latest comic from The Whiteboard';
|
||||
const MAINTAINER = 'CyberJacob';
|
||||
|
||||
$html = getSimpleHTMLDOM(self::URI);
|
||||
public function collectData()
|
||||
{
|
||||
$item = [];
|
||||
|
||||
$image = $html->find('center', 1)->find('img', 0);
|
||||
$image->src = self::URI . '/' . $image->src;
|
||||
$html = getSimpleHTMLDOM(self::URI);
|
||||
|
||||
$item['title'] = explode("\r\n", $html->find('center', 1)->plaintext)[0];
|
||||
$item['content'] = $image;
|
||||
$item['timestamp'] = explode("\r\n", $html->find('center', 1)->plaintext)[0];
|
||||
$image = $html->find('center', 1)->find('img', 0);
|
||||
$image->src = self::URI . '/' . $image->src;
|
||||
|
||||
$this->items[] = $item;
|
||||
}
|
||||
$item['title'] = explode("\r\n", $html->find('center', 1)->plaintext)[0];
|
||||
$item['content'] = $image;
|
||||
$item['timestamp'] = explode("\r\n", $html->find('center', 1)->plaintext)[0];
|
||||
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user