Code Duplication    Length = 2-3 lines in 3 locations

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

@@ 676-677 (lines=2) @@
673
		// each context defined to handle the processing of the data object within them
674
		foreach ( $this->_contexts as $context => $details ) {
675
			$xpctd_method = '_' . $context . '_addressees';
676
			if ( ! method_exists( $this, $xpctd_method ) ) {
677
				throw new EE_Error(
678
					sprintf(
679
						__(
680
							'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

@@ 1420-1421 (lines=2) @@
1417
        $this->set_timezone($timezone);
1418
        $fn = (array)$field_name;
1419
        $args = array_merge($fn, (array)$args);
1420
        if ( ! method_exists($this, $callback)) {
1421
            throw new EE_Error(
1422
                sprintf(
1423
                    __(
1424
                        'The method named "%s" given as the callback param in "display_in_my_timezone" does not exist.  Please check your spelling',

core/db_models/EEM_Base.model.php 1 location

@@ 2232-2234 (lines=3) @@
2229
        }
2230
        /** @type WPDB $wpdb */
2231
        global $wpdb;
2232
        if (! method_exists($wpdb, $wpdb_method)) {
2233
            throw new EE_Error(sprintf(__('There is no method named "%s" on Wordpress\' $wpdb object',
2234
                'event_espresso'), $wpdb_method));
2235
        }
2236
        if (WP_DEBUG) {
2237
            $old_show_errors_value = $wpdb->show_errors;