Code Duplication    Length = 11-11 lines in 2 locations

src/projects/fcreate.php 1 location

@@ 883-893 (lines=11) @@
880
          . '</textbox>'
881
          . '</control>';
882
883
    if ($form != 'checkboxform')
884
    {
885
        $xml .= '<control name="is_required">'
886
              . '<label/>'
887
              . ($is_required
888
                    ? '<checkbox checked="true">'
889
                    : '<checkbox>')
890
              . ustrtolower(get_html_resource(RES_REQUIRED2_ID))
891
              . '</checkbox>'
892
              . '</control>';
893
    }
894
}
895
896
$xml .= '<control name="guest_access">'

src/projects/fmodify.php 1 location

@@ 653-663 (lines=11) @@
650
      . '</textbox>'
651
      . '</control>';
652
653
if ($field['field_type'] != FIELD_TYPE_CHECKBOX)
654
{
655
    $xml .= '<control name="is_required">'
656
          . '<label/>'
657
          . ($is_required
658
                ? '<checkbox checked="true">'
659
                : '<checkbox>')
660
          . ustrtolower(get_html_resource(RES_REQUIRED2_ID))
661
          . '</checkbox>'
662
          . '</control>';
663
}
664
665
$xml .= '<control name="guest_access">'
666
      . '<label/>'