Code Duplication    Length = 4-4 lines in 2 locations

admin/mimetypes.php 2 locations

@@ 170-173 (lines=4) @@
167
            $error['mime_ext'][] = _AM_XHELP_VALID_ERR_MIME_EXT;
168
        }
169
170
        if (strlen(trim($mime_name)) == 0) {
171
            $has_errors = true;
172
            $error['mime_name'][] = _AM_XHELP_VALID_ERR_MIME_NAME;
173
        }
174
175
        if (strlen(trim($mime_types)) == 0) {
176
            $has_errors = true;
@@ 326-329 (lines=4) @@
323
            $error['mime_ext'][] = _AM_XHELP_VALID_ERR_MIME_EXT;
324
        }
325
326
        if (strlen(trim($_POST['mime_name'])) == 0) {
327
            $has_errors = true;
328
            $error['mime_name'][] = _AM_XHELP_VALID_ERR_MIME_NAME;
329
        }
330
331
        if (strlen(trim($_POST['mime_types'])) == 0) {
332
            $has_errors = true;