Code Duplication    Length = 6-6 lines in 2 locations

lib/Bootstrap.php 2 locations

@@ 27-32 (lines=6) @@
24
        $flyntCoreActive = class_exists('\\Flynt\\Render');
25
        $acfActive = class_exists('acf');
26
27
        if (!$flyntCoreActive) {
28
            add_action('admin_notices', function () {
29
                echo '<div class="error"><p>Flynt Core Plugin not activated. Make sure you activate the plugin on the <a href="'
30
                    . esc_url(admin_url('plugins.php')) . '">plugin page</a>.</p></div>';
31
            });
32
        }
33
34
        if (!$acfActive) {
35
            add_action('admin_notices', function () {
@@ 34-39 (lines=6) @@
31
            });
32
        }
33
34
        if (!$acfActive) {
35
            add_action('admin_notices', function () {
36
                echo '<div class="error"><p>ACF Plugin not activated. Make sure you activate the plugin on the <a href="'
37
                    . esc_url(admin_url('plugins.php')) . '">plugin page</a>.</p></div>';
38
            });
39
        }
40
41
        if (!$acfActive || !$flyntCoreActive) {
42
            add_filter('template_include', function () {