app/code/community/Ecocode/Profiler/Controller/AbstractController.php
Missing class import via use statement (line '18', column '23'). Open
Open
throw new \RuntimeException('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.');
- Read upRead up
- Exclude checks
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
Open
class Ecocode_Profiler_Controller_AbstractController
extends Mage_Core_Controller_Front_Action
{
/** @var Ecocode_Profiler_Model_Profiler */
protected $profiler;
- Read upRead up
- Exclude checks
LongClassName
Since: 2.9
Detects when classes or interfaces are declared with excessively long names.
Example
class ATooLongClassNameThatHintsAtADesignProblem {
}
interface ATooLongInterfaceNameThatHintsAtADesignProblem {
}