imagecms/ImageCMS

View on GitHub
application/views/profiler_template.php

Summary

Maintainability
B
5 hrs
Test Coverage

File profiler_template.php has 308 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<style type="text/css">
    #codeigniter-profiler { clear: both; background: #222; opacity: 0.45; padding: 0 5px; font-family: Helvetica, sans-serif; font-size: 10px !important; line-height: 12px; position: absolute; width: auto; min-width: 52em; max-width: 90%; z-index: 1000; display: none; }
    #codeigniter-profiler:hover { background: #101010; opacity: 1.0; }
    
    #codeigniter-profiler.bottom-right { position: fixed; bottom:0; right: 0; -webkit-border-top-left-radius: 7px; -moz-border-radius-topleft: 7px; border-top-left-radius: 7px; -webkit-box-shadow: -1px -1px 10px #222; -moz-box-shadow: -1px -1px 10px #222; box-shadow: -1px -1px 10px #222; }    
Severity: Minor
Found in application/views/profiler_template.php - About 3 hrs to fix

Consider simplifying this complex logical expression.
Open

    <?php if (isset($sections['http_headers']) || isset($sections['get']) || isset($sections['config']) || isset($sections['post']) || isset($sections['uri_string']) || isset($sections['controller_info']) || isset($sections['userdata'])) :?>
        <div id="ci-profiler-vars" class="ci-profiler-box" style="display: none">
            
            <!-- User Data -->
            <?php if (isset($sections['userdata'])) :?>
Severity: Major
Found in application/views/profiler_template.php - About 1 hr to fix

Consider simplifying this complex logical expression.
Open

        <?php if (isset($sections['http_headers']) || isset($sections['get']) || isset($sections['config']) || isset($sections['post']) || isset($sections['uri_string']) || isset($sections['controller_info'])) : ?>
            <a href="#" id="ci-profiler-menu-vars" onclick="ci_profiler_bar.show('ci-profiler-vars', 'ci-profiler-menu-vars'); return false;">
                <span>vars</span> &amp; Config
            </a>
        <?php endif; ?>
Severity: Major
Found in application/views/profiler_template.php - About 40 mins to fix

There are no issues that match your filters.

Category
Status