ecoco/magento_profiler

View on GitHub
app/code/community/Ecocode/Profiler/Model/Profile.php

Summary

Maintainability
A
3 hrs
Test Coverage

Ecocode_Profiler_Model_Profile has 28 functions (exceeds 20 allowed). Consider refactoring.
Open

class Ecocode_Profiler_Model_Profile
{
    protected $token;

    /**
Severity: Minor
Found in app/code/community/Ecocode/Profiler/Model/Profile.php - About 3 hrs to fix

    Missing class import via use statement (line '253', column '23').
    Open

                throw new \InvalidArgumentException(sprintf('Collector "%s" does not exist.', $name));

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    There are no issues that match your filters.

    Category
    Status