mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 23:16:53 +00:00
Coding policy conformance
This commit is contained in:
parent
18298a2b4c
commit
bb48958518
@ -54,7 +54,7 @@ class DealabsBridge extends BridgeAbstract {
|
||||
. '</td><td>'
|
||||
. $deal->find('div[class=flex flex--align-c flex--justify-space-between space--b-2]', 0)->children(0)->outertext
|
||||
. '</td></table>';
|
||||
$dealDateDiv = $deal->find('div[class=size--all-s flex flex--wrap flex--justify-e flex--grow-1]',0)
|
||||
$dealDateDiv = $deal->find('div[class=size--all-s flex flex--wrap flex--justify-e flex--grow-1]', 0)
|
||||
->find('span[class=hide--toW3]');
|
||||
$itemDate = end($dealDateDiv)->plaintext;
|
||||
if(substr( $itemDate, 0, 6 ) === 'il y a') {
|
||||
@ -128,8 +128,7 @@ class DealabsBridge extends BridgeAbstract {
|
||||
private function getImage($deal)
|
||||
{
|
||||
if($deal->find(
|
||||
'img[class=thread-image width--all-auto height--all-auto imgFrame-img '
|
||||
. 'cept-thread-img img--dummy js-lazy-img]', 0) != null) {
|
||||
'img[class=thread-image width--all-auto height--all-auto imgFrame-img cept-thread-img img--dummy js-lazy-img]', 0) != null) {
|
||||
return json_decode(
|
||||
html_entity_decode(
|
||||
$deal->find(
|
||||
@ -147,7 +146,8 @@ class DealabsBridge extends BridgeAbstract {
|
||||
{
|
||||
if($deal->find('span[class=meta-ribbon overflow--wrap-off space--l-3 text--color-greyShade]', 0) != null) {
|
||||
return '<div>'
|
||||
. $deal->find('span[class=meta-ribbon overflow--wrap-off space--l-3 text--color-greyShade]', 0)->children(2)->plaintext
|
||||
. $deal->find('span[class=meta-ribbon overflow--wrap-off space--l-3 text--color-greyShade]', 0)
|
||||
->children(2)->plaintext
|
||||
. '</div>';
|
||||
} else {
|
||||
return '';
|
||||
|
Loading…
Reference in New Issue
Block a user