Code Duplication    Length = 4-15 lines in 3 locations

core/db_classes/EE_Import.class.php 2 locations

@@ 398-401 (lines=4) @@
395
            $success = true;
396
        }
397
398
        if ($this->_total_update_errors > 0) {
399
            EE_Error::add_error(
400
                sprintf(
401
                    __(
402
                        "'One or more errors occurred, and a total of %s existing records in the database were <strong>not</strong> updated.'",
403
                        "event_espresso"
404
                    ),
@@ 413-416 (lines=4) @@
410
            );
411
            $error = true;
412
        }
413
        if ($this->_total_insert_errors > 0) {
414
            EE_Error::add_error(
415
                sprintf(
416
                    __(
417
                        "One or more errors occurred, and a total of %s new records were <strong>not</strong> added to the database.'",
418
                        "event_espresso"
419
                    ),

core/admin/EE_Admin_Page_CPT.core.php 1 location

@@ 892-906 (lines=15) @@
889
            );
890
        }
891
        // if auto-draft then throw an error
892
        if ($this->_cpt_model_obj->get('status') === 'auto-draft') {
893
            EE_Error::overwrite_errors();
894
            EE_Error::add_error(
895
                sprintf(
896
                    __(
897
                        'This %1$s was saved without a title, description, or excerpt which means that none of the extra details you added were saved properly.  All autodrafts will show up in the "draft" view of your event list table.  You can delete them from there. Please click the "Add %1$s" button to refresh and restart.',
898
                        'event_espresso'
899
                    ),
900
                    $label
901
                ),
902
                __FILE__,
903
                __FUNCTION__,
904
                __LINE__
905
            );
906
        }
907
    }
908
909