Code Duplication    Length = 9-9 lines in 2 locations

class/oledrion_attributes.php 1 location

@@ 110-118 (lines=9) @@
107
     * @return array
108
     * @since 2.3.2009.03.11
109
     */
110
    public function getOption($valueToGet, $format = 'e')
111
    {
112
        $names = array();
113
        if (xoops_trim($this->getVar($valueToGet, $format)) != '') {
114
            $names = explode(OLEDRION_ATTRIBUTE_SEPARATOR, $this->getVar($valueToGet, $format));
115
        }
116
117
        return $names;
118
    }
119
120
    /**
121
     * Retourne le nombre d'options de l'attribut courant

class/oledrion_caddy_attributes.php 1 location

@@ 56-64 (lines=9) @@
53
     * @return array
54
     * @since 2.3.2009.03.11
55
     */
56
    public function getOption($valueToGet, $format = 'e')
57
    {
58
        $names = array();
59
        if (xoops_trim($this->getVar($valueToGet, $format)) != '') {
60
            $names = explode(OLEDRION_ATTRIBUTE_SEPARATOR, $this->getVar($valueToGet, $format));
61
        }
62
63
        return $names;
64
    }
65
66
    /**
67
     * Ajout d'une option à l'attribut (soit une option vide soit une option valorisée)