polyfony-inc/polyfony

View on GitHub
Private/Polyfony/Profiler/HTML/Timing.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method getBody has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static function getBody($data) {

        $timing_body = [];
        // for each stacked element
        foreach($data['stack'] as $elem) {
Severity: Minor
Found in Private/Polyfony/Profiler/HTML/Timing.php - About 1 hr to fix

Method getLegend has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static function getLegend() :array {

        // the general legend for the waterfall graphics
        $legend=[];
        $legend[] = new Element('span',[
Severity: Minor
Found in Private/Polyfony/Profiler/HTML/Timing.php - About 1 hr to fix

There are no issues that match your filters.

Category
Status