Code Duplication    Length = 5-5 lines in 2 locations

views/templates/head.php 1 location

@@ 24-28 (lines=5) @@
21
    
22
    <?php
23
    if (isset($settings)) {
24
        foreach ($settings['plugins'] as &$plugin) {
25
            if (file_exists("plugins/" . $plugin . "/assets/style.css")) {
26
                echo '<link rel="stylesheet" type="text/css" href="' . $settings['url'] . 'plugins/' . $plugin . '/assets/style.css">';
27
            }
28
        }
29
    } ?>
30
    <!--Copyright CyberByte 2015 http://cyberbyte.org.uk/-->
31
</head>

views/templates/scripts.php 1 location

@@ 154-158 (lines=5) @@
151
                            }
152
?>
153
<?php
154
foreach ($settings['plugins'] as &$plugin) {
155
    if (file_exists('plugins/'.$plugin.'/assets/scripts.js')) {
156
        echo '<script type="text/javascript" src="'.$settings['url'].'plugins/'.$plugin.'/assets/scripts.js"></script>';
157
    }
158
}
159