Code Duplication    Length = 3-14 lines in 3 locations

core/libraries/plugin_api/EE_Register_Addon.lib.php 1 location

@@ 293-295 (lines=3) @@
290
                )
291
            );
292
        }
293
        if (! isset($setup_args['main_file_path']) || empty($setup_args['main_file_path'])) {
294
            throw new EE_Error(
295
                sprintf(
296
                    __(
297
                        'When registering an addon, you didn\'t provide the "main_file_path", which is the full path to the main file loaded directly by Wordpress. You only provided %s',
298
                        'event_espresso'

core/EE_Registry.core.php 1 location

@@ 976-989 (lines=14) @@
973
        // don't give up! you gotta...
974
        try {
975
            //does the file exist and can it be read ?
976
            if (! $path) {
977
                // so sorry, can't find the file
978
                throw new EE_Error (
979
                    sprintf(
980
                        esc_html__(
981
                            'The %1$s file %2$s could not be located or is not readable due to file permissions. Please ensure that the following filepath(s) are correct: %3$s',
982
                            'event_espresso'
983
                        ),
984
                        trim($type, '.'),
985
                        $class_name,
986
                        '<br />' . implode(',<br />', $file_paths)
987
                    )
988
                );
989
            }
990
            // get the file
991
            require_once($path);
992
            // if the class isn't already declared somewhere

core/db_models/EEM_Base.model.php 1 location

@@ 3270-3272 (lines=3) @@
3267
                    //then $possible_array_of_params looks something like array('<','DTT_sold',true)
3268
                    //indicating that $possible_array_of_params[1] is actually a field name,
3269
                    //from which we should extract query parameters!
3270
                    if (! isset($possibly_array_of_params[0], $possibly_array_of_params[1])) {
3271
                        throw new EE_Error(sprintf(__("Improperly formed query parameter %s. It should be numerically indexed like array('<','DTT_sold',true); but you provided %s",
3272
                            "event_espresso"), $query_param_type, implode(",", $possibly_array_of_params)));
3273
                    }
3274
                    $this->_extract_related_model_info_from_query_param($possibly_array_of_params[1],
3275
                        $model_query_info_carrier, $query_param_type);