Code Duplication    Length = 5-6 lines in 2 locations

core/EE_System.core.php 2 locations

@@ 1160-1165 (lines=6) @@
1157
                new ExceptionStackTraceDisplay($exception);
1158
            }
1159
        }
1160
        if ($this->request->isAdmin()
1161
            || $this->request->isEeAjax()
1162
            || $this->request->isFrontend()
1163
        ) {
1164
            $this->loader->getShared('EE_Session');
1165
        }
1166
        do_action('AHEE__EE_System__core_loaded_and_ready');
1167
        // load_espresso_template_tags
1168
        if (is_readable(EE_PUBLIC . 'template_tags.php')
@@ 1211-1215 (lines=5) @@
1208
        );
1209
        $rewrite_rules->flushRewriteRules();
1210
        add_action('admin_bar_init', array($this, 'addEspressoToolbar'));
1211
        if ($this->request->isAdmin()) {
1212
            $this->loader->getShared('EventEspresso\core\services\privacy\policy\PrivacyPolicyManager');
1213
            $this->loader->getShared('EventEspresso\core\services\privacy\export\PersonalDataExporterManager');
1214
            $this->loader->getShared('EventEspresso\core\services\privacy\erasure\PersonalDataEraserManager');
1215
        }
1216
        if ($this->request->isAjax()) {
1217
            $this->loader->getShared('EventEspresso\core\services\privacy\export\PersonalDataExporterManager');
1218
            $this->loader->getShared('EventEspresso\core\services\privacy\erasure\PersonalDataEraserManager');