Code Duplication    Length = 5-5 lines in 2 locations

class/alumni_tree.php 2 locations

@@ 208-212 (lines=5) @@
205
            $ret         .= '>' . $prefix_curr . $object->getVar($fieldName) . '</option>';
206
            $prefix_curr .= $prefix_orig;
207
        }
208
        if (isset($this->_tree[$key]['child']) && !empty($this->_tree[$key]['child'])) {
209
            foreach ($this->_tree[$key]['child'] as $childkey) {
210
                $this->alumni_makeSelBoxOptions($fieldName, $selected, $childkey, $ret, $prefix_orig, $prefix_curr);
211
            }
212
        }
213
    }
214
215
    /**
@@ 276-280 (lines=5) @@
273
            $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
274
            $prefix_curr .= $prefix_orig;
275
        }
276
        if (isset($this->_tree[$key]['child']) && !empty($this->_tree[$key]['child'])) {
277
            foreach ($this->_tree[$key]['child'] as $childkey) {
278
                $this->alumni_makeArrayTreeOptions($fieldName, $childkey, $ret, $prefix_orig, $prefix_curr);
279
            }
280
        }
281
    }
282
}
283