Code Duplication    Length = 7-7 lines in 4 locations

src/Xtools/UserRepository.php 4 locations

@@ 302-308 (lines=7) @@
299
        $condBegin = '';
300
        $condEnd = '';
301
302
        if (!empty($start)) {
303
            $cacheKey .= '.' . $start;
304
305
            // For the query
306
            $start = date('Ymd000000', strtotime($start));
307
            $condBegin = 'AND rev_timestamp >= :start ';
308
        }
309
        if (!empty($end)) {
310
            $cacheKey .= '.' . $end;
311
@@ 376-382 (lines=7) @@
373
        $condBegin = '';
374
        $condEnd = '';
375
376
        if (!empty($start)) {
377
            $cacheKey .= '.' . $start;
378
379
            // For the query
380
            $start = date('Ymd000000', strtotime($start));
381
            $condBegin = 'AND rev_timestamp >= :start ';
382
        }
383
        if (!empty($end)) {
384
            $cacheKey .= '.' . $end;
385
@@ 479-485 (lines=7) @@
476
        $condBegin = '';
477
        $condEnd = '';
478
479
        if (!empty($start)) {
480
            $cacheKey .= '.' . $start;
481
482
            // For the query
483
            $start = date('Ymd000000', strtotime($start));
484
            $condBegin = 'AND revs.rev_timestamp >= :start ';
485
        }
486
        if (!empty($end)) {
487
            $cacheKey .= '.' . $end;
488
@@ 586-592 (lines=7) @@
583
        $condBegin = '';
584
        $condEnd = '';
585
586
        if (!empty($start)) {
587
            $cacheKey .= '.' . $start;
588
589
            // For the query
590
            $start = date('Ymd000000', strtotime($start));
591
            $condBegin = 'AND rev_timestamp >= :start ';
592
        }
593
        if (!empty($end)) {
594
            $cacheKey .= '.' . $end;
595