Code Duplication    Length = 5-6 lines in 2 locations

core/EE_System.core.php 2 locations

@@ 1155-1160 (lines=6) @@
1152
                new ExceptionStackTraceDisplay($exception);
1153
            }
1154
        }
1155
        if ($this->request->isAdmin()
1156
            || $this->request->isEeAjax()
1157
            || $this->request->isFrontend()
1158
        ) {
1159
            $this->loader->getShared('EE_Session');
1160
        }
1161
        do_action('AHEE__EE_System__core_loaded_and_ready');
1162
        // load_espresso_template_tags
1163
        if (is_readable(EE_PUBLIC . 'template_tags.php')
@@ 1207-1211 (lines=5) @@
1204
        );
1205
        $rewrite_rules->flushRewriteRules();
1206
        add_action('admin_bar_init', array($this, 'addEspressoToolbar'));
1207
        if ($this->request->isAdmin()) {
1208
            $this->loader->getShared('EventEspresso\core\services\privacy\policy\PrivacyPolicyManager');
1209
            $this->loader->getShared('EventEspresso\core\services\privacy\export\PersonalDataExporterManager');
1210
            $this->loader->getShared('EventEspresso\core\services\privacy\erasure\PersonalDataEraserManager');
1211
        }
1212
        if ($this->request->isAjax()) {
1213
            $this->loader->getShared('EventEspresso\core\services\privacy\export\PersonalDataExporterManager');
1214
            $this->loader->getShared('EventEspresso\core\services\privacy\erasure\PersonalDataEraserManager');