Coding policy conformance

More fix to the code
This commit is contained in:
sysadminstory 2018-02-12 23:08:55 +01:00
parent bfe27c96bc
commit 085ccefc2d

View File

@ -163,9 +163,18 @@ class DealabsBridge extends BridgeAbstract {
private function getExpedition($deal)
{
if($deal->find('span[class=meta-ribbon overflow--wrap-off space--l-3 text--color-greyShade]', 0) != null) {
$selector = implode(
' ', /* Notice this is a space! */
array(
'meta-ribbon',
'overflow--wrap-off',
'space--l-3',
'text--color-greyShade'
)
);
if($deal->find('span[class='. $selector .']', 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='. $selector .']', 0)->children(2)->plaintext
. '</div>';
} else {
return '';