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

@@ 1405-1406 (lines=2) @@
1402
        $this->set_timezone($timezone);
1403
        $fn = (array)$field_name;
1404
        $args = array_merge($fn, (array)$args);
1405
        if ( ! method_exists($this, $callback)) {
1406
            throw new EE_Error(
1407
                sprintf(
1408
                    __(
1409
                        '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

@@ 2224-2226 (lines=3) @@
2221
        }
2222
        /** @type WPDB $wpdb */
2223
        global $wpdb;
2224
        if (! method_exists($wpdb, $wpdb_method)) {
2225
            throw new EE_Error(sprintf(__('There is no method named "%s" on Wordpress\' $wpdb object',
2226
                'event_espresso'), $wpdb_method));
2227
        }
2228
        if (WP_DEBUG) {
2229
            $old_show_errors_value = $wpdb->show_errors;