Code Duplication    Length = 4-4 lines in 2 locations

admin/mimetypes.php 2 locations

@@ 175-178 (lines=4) @@
172
            $error['mime_name'][] = _AM_XHELP_VALID_ERR_MIME_NAME;
173
        }
174
175
        if (strlen(trim($mime_types)) == 0) {
176
            $has_errors = true;
177
            $error['mime_types'][] = _AM_XHELP_VALID_ERR_MIME_TYPES;
178
        }
179
180
        if ($has_errors) {
181
            $session = Session::singleton();
@@ 331-334 (lines=4) @@
328
            $error['mime_name'][] = _AM_XHELP_VALID_ERR_MIME_NAME;
329
        }
330
331
        if (strlen(trim($_POST['mime_types'])) == 0) {
332
            $has_errors = true;
333
            $error['mime_types'][] = _AM_XHELP_VALID_ERR_MIME_TYPES;
334
        }
335
336
        if ($has_errors) {
337
            $session = Session::singleton();