Code Duplication    Length = 5-5 lines in 2 locations

class/EventHandler.php 2 locations

@@ 2379-2383 (lines=5) @@
2376
                'tc.cat_name',
2377
            ];
2378
            $t       = [];
2379
            for ($i = 0, $count = count($queryarray); $i < $count; ++$i) {
2380
                $t1[] = " %1\$s LIKE '#{$queryarray[$i]}#' ";
2381
            }
2382
2383
            $flt = '(' . implode(" {$andor} ", $t1) . ')';
2384
2385
            $t = [];
2386
            for ($h = 0, $count = count($tFields); $h < $count; ++$h) {
@@ 2510-2514 (lines=5) @@
2507
2508
            $tFields = ['event_title', 'event_desc', 'event_contact', 'event_address', 'cat_name'];
2509
            $t       = [];
2510
            for ($i = 0, $count = count($queryarray); $i < $count; ++$i) {
2511
                $t1[] = " %1\$s LIKE '#{$queryarray[$i]}#' ";
2512
            }
2513
2514
            $flt = '(' . implode(" {$andor} ", $t1) . ')';
2515
2516
            $t = [];
2517
            for ($h = 0, $count = count($tFields); $h < $count; ++$h) {