ecoco/magento_profiler

View on GitHub
app/code/community/Ecocode/Profiler/Controller/AbstractController.php

Summary

Maintainability
A
0 mins
Test Coverage

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

            throw new \RuntimeException('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.');

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

Avoid excessively long class names like Ecocode_Profiler_Controller_AbstractController. Keep class name length under 40.
Open

class Ecocode_Profiler_Controller_AbstractController
    extends Mage_Core_Controller_Front_Action
{
    /** @var  Ecocode_Profiler_Model_Profiler */
    protected $profiler;

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

There are no issues that match your filters.

Category
Status