Code Duplication    Length = 6-6 lines in 3 locations

src/records/create.php 1 location

@@ 720-725 (lines=6) @@
717
                    debug_write_log(DEBUG_WARNING, 'Unknown field type = ' . $row['field_type']);
718
            }
719
720
            if (ustrlen($row['description']) != 0)
721
            {
722
                $xml .= '<description>'
723
                      . update_references($row['description'], BBCODE_ALL)
724
                      . '</description>';
725
            }
726
727
            $xml .= '</control>';
728

src/records/modify.php 1 location

@@ 366-371 (lines=6) @@
363
                    debug_write_log(DEBUG_WARNING, 'Unknown field type = ' . $field['field_type']);
364
            }
365
366
            if (ustrlen($field['description']) != 0)
367
            {
368
                $xml .= '<description>'
369
                      . update_references($field['description'], BBCODE_ALL)
370
                      . '</description>';
371
            }
372
373
            $xml .= '</control>';
374

src/records/state.php 1 location

@@ 527-532 (lines=6) @@
524
                debug_write_log(DEBUG_WARNING, 'Unknown field type = ' . $row['field_type']);
525
        }
526
527
        if (strlen($row['description']) != 0)
528
        {
529
            $xml .= '<description>'
530
                  . update_references($row['description'], BBCODE_ALL)
531
                  . '</description>';
532
        }
533
534
        $xml .= '</control>';
535