Coding policy conformance

This commit is contained in:
sysadminstory 2017-10-24 23:28:23 +02:00
parent b5338bf424
commit aa4aefe5e3

View File

@ -69,7 +69,8 @@ class DealabsBridge extends BridgeAbstract {
private function getPrix($deal) private function getPrix($deal)
{ {
if($deal->find( if($deal->find(
'span[class*=thread-price text--b vAlign--all-tt cept-tp size--all-m size--fromW2-xxl size--fromW4-xxxl]', 0) != null) { 'span[class*=thread-price text--b vAlign--all-tt cept-tp '
. 'size--all-m size--fromW2-xxl size--fromW4-xxxl]', 0) != null) {
return '<div>Prix : ' return '<div>Prix : '
. $deal->find( . $deal->find(
'span[class*=thread-price text--b vAlign--all-tt cept-tp size--all-m size--fromW2-xxl size--fromW4-xxxl]', 0 'span[class*=thread-price text--b vAlign--all-tt cept-tp size--all-m size--fromW2-xxl size--fromW4-xxxl]', 0
@ -84,8 +85,7 @@ class DealabsBridge extends BridgeAbstract {
private function getLivraison($deal) private function getLivraison($deal)
{ {
if($deal->find('span[class=size--all-s overflow--wrap-off cept-shipping-price]', 0) != null) { if($deal->find('span[class=size--all-s overflow--wrap-off cept-shipping-price]', 0) != null) {
if($deal->find('span[class=size--all-s overflow--wrap-off cept-shipping-price]', 0)->children(0) != null) if($deal->find('span[class=size--all-s overflow--wrap-off cept-shipping-price]', 0)->children(0) != null) {
{
return '<div>Livraison : ' return '<div>Livraison : '
. $deal->find('span[class=size--all-s overflow--wrap-off cept-shipping-price]', 0)->children(0)->innertext . $deal->find('span[class=size--all-s overflow--wrap-off cept-shipping-price]', 0)->children(0)->innertext
. '</div>'; . '</div>';
@ -126,7 +126,8 @@ class DealabsBridge extends BridgeAbstract {
private function getImage($deal) private function getImage($deal)
{ {
if($deal->find( 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( return json_decode(
html_entity_decode( html_entity_decode(
$deal->find( $deal->find(