Code Duplication    Length = 5-5 lines in 4 locations

class/Tree.php 4 locations

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