wikimedia/mediawiki-core

View on GitHub
includes/profiler/SectionProfiler.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method getFunctionStats has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getFunctionStats() {
        $this->collateData();

        if ( is_array( $this->start ) && is_array( $this->end ) ) {
            $totalCpu = max( $this->end['cpu'] - $this->start['cpu'], 0 );
Severity: Minor
Found in includes/profiler/SectionProfiler.php - About 1 hr to fix

    Method profileOutInternal has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function profileOutInternal( $functionname ) {
            $item = array_pop( $this->workStack );
            if ( $item === null ) {
                $this->logger->error( "Profiling error: $functionname" );
                return;
    Severity: Minor
    Found in includes/profiler/SectionProfiler.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status