Code Duplication    Length = 5-5 lines in 4 locations

class/tree.php 4 locations

@@ 81-85 (lines=5) @@
78
            $prefix_curr .= $prefix_orig;
79
        }
80
81
        if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) {
82
            foreach ($this->tree[$key]['child'] as $childkey) {
83
                $this->_makePagesAdminOptions($childkey, $ret, $prefix_orig, $objInsinstr, $class, $prefix_curr);
84
            }
85
        }
86
    }
87
88
    public function makePagesAdmin(&$objInsinstr, $prefix = '-', $key = 0)
@@ 175-179 (lines=5) @@
172
            $prefix_curr .= $prefix_orig;
173
        }
174
175
        if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) {
176
            foreach ($this->tree[$key]['child'] as $childkey) {
177
                $this->_makeCatsAdminOptions($childkey, $ret, $prefix_orig, $cidinstrids, $class, $prefix_curr);
178
            }
179
        }
180
    }
181
182
    public function makeCatsAdmin($prefix = '-', $cidinstrids = [], $key = 0)
@@ 292-296 (lines=5) @@
289
        }
290
291
        // Рекурсия
292
        if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) {
293
            foreach ($this->tree[$key]['child'] as $childkey) {
294
                $this->_makePagesUserTree($childkey, $ret, $currpageid, $lastpageids, $level);
295
            }
296
        }
297
298
        // Test
299
        if ($key > 0) {
@@ 353-357 (lines=5) @@
350
        }
351
352
        // Рекурсия
353
        if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) {
354
            foreach ($this->tree[$key]['child'] as $childkey) {
355
                $this->_makePagesUserCalc($childkey, $currpageid, $prevpages, $nextpages, $lastpageids, $level);
356
            }
357
        }
358
    }
359
360
    //