Code Duplication    Length = 4-4 lines in 2 locations

src/records/fields.php 1 location

@@ 77-80 (lines=4) @@
74
     . '<text label="' . get_html_resource(RES_PROJECT_ID)     . '">' . ustr2html($record['project_name']) . '</text>'
75
     . '<text label="' . get_html_resource(RES_TEMPLATE_ID)    . '">' . ustr2html($record['template_name']) . '</text>';
76
77
if (is_record_postponed($record))
78
{
79
    $xml .= '<text label="' . get_html_resource(RES_POSTPONED_ID) . '">' . get_date($record['postpone_time']) . '</text>';
80
}
81
82
$xml .= '</group>';
83

src/records/record.php 1 location

@@ 383-386 (lines=4) @@
380
      . '<text label="' . get_html_resource(RES_PROJECT_ID)     . '">' . ustr2html($record['project_name']) . '</text>'
381
      . '<text label="' . get_html_resource(RES_TEMPLATE_ID)    . '">' . ustr2html($record['template_name']) . '</text>';
382
383
if (is_record_postponed($record))
384
{
385
    $xml .= '<text label="' . get_html_resource(RES_POSTPONED_ID) . '">' . get_date($record['postpone_time']) . '</text>';
386
}
387
388
$xml .= '</group>';
389