Code Duplication    Length = 5-5 lines in 2 locations

class/tree.php 2 locations

@@ 200-204 (lines=5) @@
197
            $ret .= '>' . $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName) . '</option>';
198
            $prefix_curr .= $prefix_orig;
199
        }
200
        if (isset($this->_tree[$key]['child']) && !empty($this->_tree[$key]['child'])) {
201
            foreach ($this->_tree[$key]['child'] as $childkey) {
202
                $this->_makeSelBoxOptions($fieldName, $selected, $childkey, $ret, $prefix_orig, $prefix_curr);
203
            }
204
        }
205
    }
206
207
    /**
@@ 260-264 (lines=5) @@
257
            $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
258
            $prefix_curr .= $prefix_orig;
259
        }
260
        if (isset($this->_tree[$key]['child']) && !empty($this->_tree[$key]['child'])) {
261
            foreach ($this->_tree[$key]['child'] as $childkey) {
262
                $this->_recursiveMakeTreeAsArray($fieldName, $childkey, $ret, $prefix_orig, $prefix_curr);
263
            }
264
        }
265
    }
266
267
    /**