Code Duplication    Length = 5-5 lines in 2 locations

core/src/Core.php 2 locations

@@ 4308-4312 (lines=5) @@
4305
            if ($tvsort != '') {
4306
                $tvsort = 'tv.' . implode(',tv.', array_filter(array_map('trim', explode(',', $tvsort))));
4307
            }
4308
            if ($tvidnames == "*") {
4309
                $query = "tv.id<>0";
4310
            } else {
4311
                $query = (is_numeric($tvidnames[0]) ? "tv.id" : "tv.name") . " IN ('" . implode("','", $tvidnames) . "')";
4312
            }
4313
4314
            $this->getUserDocGroups();
4315
@@ 4495-4499 (lines=5) @@
4492
            }
4493
            $sort = ($sort == '') ? '' : 'tv.' . implode(',tv.', array_filter(array_map('trim', explode(',', $sort))));
4494
4495
            if ($idnames === '*') {
4496
                $query = 'tv.id<>0';
4497
            } else {
4498
                $query = (is_numeric($idnames[0]) ? 'tv.id' : 'tv.name') . " IN ('" . implode("','", $idnames) . "')";
4499
            }
4500
4501
            $rs = $this->getDatabase()->select(
4502
                "{$fields}, IF(tvc.value != '', tvc.value, tv.default_text) as value",