Code Duplication    Length = 5-5 lines in 2 locations

htdocs/util/watchlist/runwatch.php 2 locations

@@ 424-428 (lines=5) @@
421
    if (!$language) {
422
        $language = $opt['template']['default']['locale'];
423
    }
424
    if (strpos($rLog['logdate'], '00:00:00') > 0) {
425
        $dateformat = $opt['locale'][$language]['format']['phpdate'];
426
    } else {
427
        $dateformat = $opt['locale'][$language]['format']['phpdatetime'];
428
    }
429
430
    $watchtext =
431
        '{date} ' . $translate->t(
@@ 336-340 (lines=5) @@
333
    if (!$language) {
334
        $language = $opt['template']['default']['locale'];
335
    }
336
    if (strpos($rLog['logdate'], '00:00:00') > 0) {
337
        $dateformat = $opt['locale'][$language]['format']['phpdate'];
338
    } else {
339
        $dateformat = $opt['locale'][$language]['format']['phpdatetime'];
340
    }
341
342
    $watchtext =
343
        '{date} ' . $translate->t(