Code Duplication    Length = 2-3 lines in 3 locations

core/db_models/EEM_Base.model.php 1 location

@@ 2316-2318 (lines=3) @@
2313
        }
2314
        /** @type WPDB $wpdb */
2315
        global $wpdb;
2316
        if (! method_exists($wpdb, $wpdb_method)) {
2317
            throw new EE_Error(sprintf(__('There is no method named "%s" on Wordpress\' $wpdb object',
2318
                'event_espresso'), $wpdb_method));
2319
        }
2320
        if (WP_DEBUG) {
2321
            $old_show_errors_value = $wpdb->show_errors;

core/libraries/messages/EE_message_type.lib.php 1 location

@@ 665-666 (lines=2) @@
662
        // each context defined to handle the processing of the data object within them
663
        foreach ($this->_contexts as $context => $details) {
664
            $xpctd_method = '_' . $context . '_addressees';
665
            if (! method_exists($this, $xpctd_method)) {
666
                throw new EE_Error(
667
                    sprintf(
668
                        __(
669
                            'The data for %1$s message type cannot be prepared because there is no set method for doing so.  The expected method name is "%2$s" please doublecheck the %1$s message type class and make sure that method is present',

core/db_classes/EE_Base_Class.class.php 1 location

@@ 1453-1454 (lines=2) @@
1450
        $this->set_timezone($timezone);
1451
        $fn = (array)$field_name;
1452
        $args = array_merge($fn, (array)$args);
1453
        if ( ! method_exists($this, $callback)) {
1454
            throw new EE_Error(
1455
                sprintf(
1456
                    __(
1457
                        'The method named "%s" given as the callback param in "display_in_my_timezone" does not exist.  Please check your spelling',