Coding policy fixes

This commit is contained in:
sysadminstory 2018-02-15 00:15:02 +01:00
parent e1994fb656
commit f910641398

View File

@ -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 {