Code Duplication    Length = 3-3 lines in 2 locations

devices/xml/Device_XML.php 2 locations

@@ 121-123 (lines=3) @@
118
    ];
119
120
    private function getSimpleAttribute($attrName) {
121
        if ((!isset($this->attributes[$attrName][0]) || !$this->attributes[$attrName][0])) {
122
            return '';
123
        }
124
125
        $attributeList = $this->attributes[$attrName];
126
        if (!isset($this->AttributeNames[$attrName])) {
@@ 142-144 (lines=3) @@
139
     * @return array of values for this attribute
140
     */
141
    private function getSimpleMLAttribute($attrName) {
142
        if ((!isset($this->attributes[$attrName][0]) || !$this->attributes[$attrName][0])) {
143
            return '';
144
        }
145
146
        $attributeList = $this->attributes[$attrName];
147
        if (!isset($this->AttributeNames[$attrName])) {