Code Duplication    Length = 8-8 lines in 4 locations

class/oledrion_delivery.php 1 location

@@ 49-56 (lines=8) @@
46
     * Retourne l'URL de l'image de la catégorie courante
47
     * @return string L'URL
48
     */
49
    public function getPictureUrl()
50
    {
51
        if (xoops_trim($this->getVar('product_image_url')) != '') {
52
            return OLEDRION_PICTURES_URL . '/' . $this->getVar('delivery_image');
53
        } else {
54
            return '';
55
        }
56
    }
57
58
    /**
59
     * Indique si l'image de la catégorie existe

class/oledrion_packing.php 1 location

@@ 51-58 (lines=8) @@
48
     * Retourne l'URL de l'image de la catégorie courante
49
     * @return string L'URL
50
     */
51
    public function getPictureUrl()
52
    {
53
        if (xoops_trim($this->getVar('product_image_url')) != '') {
54
            return OLEDRION_PICTURES_URL . '/' . $this->getVar('packing_image');
55
        } else {
56
            return '';
57
        }
58
    }
59
60
    /**
61
     * Indique si l'image de la catégorie existe

class/oledrion_payment.php 1 location

@@ 49-56 (lines=8) @@
46
     * Retourne l'URL de l'image de la catégorie courante
47
     * @return string L'URL
48
     */
49
    public function getPictureUrl()
50
    {
51
        if (xoops_trim($this->getVar('product_image_url')) != '') {
52
            return OLEDRION_PICTURES_URL . '/' . $this->getVar('payment_image');
53
        } else {
54
            return '';
55
        }
56
    }
57
58
    /**
59
     * Indique si l'image de la catégorie existe

class/oledrion_products.php 1 location

@@ 127-134 (lines=8) @@
124
     *
125
     * @return string L'URL
126
     */
127
    public function getPictureUrl()
128
    {
129
        if (xoops_trim($this->getVar('product_image_url')) != '') {
130
            return OLEDRION_PICTURES_URL . '/' . $this->getVar('product_image_url');
131
        } else {
132
            return '';
133
        }
134
    }
135
136
    /**
137
     * Retourne le chemin de l'image du produit courant