Code Duplication    Length = 5-5 lines in 4 locations

class/Tree.php 4 locations

@@ 95-99 (lines=5) @@
92
            $prefix_curr .= $prefix_orig;
93
        }
94
95
        if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) {
96
            foreach ($this->tree[$key]['child'] as $childkey) {
97
                $this->_makePagesAdminOptions($childkey, $ret, $prefix_orig, $objInsinstr, $class, $prefix_curr);
98
            }
99
        }
100
    }
101
102
    /**
@@ 203-207 (lines=5) @@
200
            $prefix_curr .= $prefix_orig;
201
        }
202
203
        if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) {
204
            foreach ($this->tree[$key]['child'] as $childkey) {
205
                $this->_makeCatsAdminOptions($childkey, $ret, $prefix_orig, $cidinstrids, $class, $prefix_curr);
206
            }
207
        }
208
    }
209
210
    /**
@@ 333-337 (lines=5) @@
330
        }
331
332
        // Рекурсия
333
        if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) {
334
            foreach ($this->tree[$key]['child'] as $childkey) {
335
                $this->_makePagesUserTree($childkey, $ret, $currpageid, $lastpageids, $level);
336
            }
337
        }
338
339
        // Test
340
        if ($key > 0) {
@@ 402-406 (lines=5) @@
399
        }
400
401
        // Рекурсия
402
        if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) {
403
            foreach ($this->tree[$key]['child'] as $childkey) {
404
                $this->_makePagesUserCalc($childkey, $currpageid, $prevpages, $nextpages, $lastpageids, $level);
405
            }
406
        }
407
    }
408
409
    //