Code Duplication    Length = 5-13 lines in 2 locations

core/admin/EE_Admin_Page_Menu_Map.core.php 1 location

@@ 165-169 (lines=5) @@
162
                case 'show_on_menu':
163
                    $value = (int) $value;
164
                    break;
165
                case 'admin_init_page':
166
                    if (in_array('admin_init_page', $required) && ! $value instanceof EE_Admin_Page_Init) {
167
                        throw new EE_Error(
168
                            sprintf(
169
                                __(
170
                                    'The value for the "admin_init_page" argument must be an instance of an EE_Admin_Page_Init object.  Instead %s was given as the value.',
171
                                    'event_espresso'
172
                                ),

core/EE_Config.core.php 1 location

@@ 672-684 (lines=13) @@
669
                        }
670
                        break;
671
                    // TEST #9 : verify config object
672
                    case 9:
673
                        if (! $config_obj instanceof EE_Config_Base) {
674
                            if ($display_errors) {
675
                                throw new EE_Error(
676
                                    sprintf(
677
                                        __('The "%s" class is not an instance of EE_Config_Base.', 'event_espresso'),
678
                                        print_r($config_obj, true)
679
                                    )
680
                                );
681
                            }
682
                            return false;
683
                        }
684
                        break;
685
                }
686
            }
687
        } catch (EE_Error $e) {