mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 15:06:53 +00:00
Coding policy fixes
This commit is contained in:
parent
e1994fb656
commit
f910641398
@ -140,7 +140,7 @@ class DealabsBridge extends BridgeAbstract {
|
|||||||
$html = getSimpleHTMLDOM($url)
|
$html = getSimpleHTMLDOM($url)
|
||||||
or returnServerError('Could not request Dealabs.');
|
or returnServerError('Could not request Dealabs.');
|
||||||
$list = $html->find('article');
|
$list = $html->find('article');
|
||||||
|
|
||||||
// Deal Image Link CSS Selector
|
// Deal Image Link CSS Selector
|
||||||
$selectorImageLink = implode(
|
$selectorImageLink = implode(
|
||||||
' ', /* Notice this is a space! */
|
' ', /* Notice this is a space! */
|
||||||
@ -201,7 +201,7 @@ class DealabsBridge extends BridgeAbstract {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// If there is no results, we don't parse the content because it display some random deals
|
// If there is no results, we don't parse the content because it display some random deals
|
||||||
$noresult = $html->find('h3[class=size--all-l size--fromW2-xl size--fromW3-xxl]',0);
|
$noresult = $html->find('h3[class=size--all-l size--fromW2-xl size--fromW3-xxl]', 0);
|
||||||
if($noresult != null && $noresult->plaintext == 'Il n'y a rien à afficher pour le moment :(') {
|
if($noresult != null && $noresult->plaintext == 'Il n'y a rien à afficher pour le moment :(') {
|
||||||
$this->items = array();
|
$this->items = array();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user