Code Duplication    Length = 5-5 lines in 2 locations

class/tree.php 2 locations

@@ 204-208 (lines=5) @@
201
            $ret .= '>' . $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName) . '</option>';
202
            $prefix_curr .= $prefix_orig;
203
        }
204
        if (isset($this->_tree[$key]['child']) && !empty($this->_tree[$key]['child'])) {
205
            foreach ($this->_tree[$key]['child'] as $childkey) {
206
                $this->_makeSelBoxOptions($fieldName, $selected, $childkey, $ret, $prefix_orig, $prefix_curr);
207
            }
208
        }
209
    }
210
211
    /**
@@ 254-258 (lines=5) @@
251
            $ret[$value] = $prefix_curr . $this->_tree[$key]['obj']->getVar($fieldName);
252
            $prefix_curr .= $prefix_orig;
253
        }
254
        if (isset($this->_tree[$key]['child']) && !empty($this->_tree[$key]['child'])) {
255
            foreach ($this->_tree[$key]['child'] as $childkey) {
256
                $this->_recursiveMakeTreeAsArray($fieldName, $childkey, $ret, $prefix_orig, $prefix_curr);
257
            }
258
        }
259
    }
260
261
    /**