lib/Ajde/Document/Processor/Css/Maximizer.php
Missing class import via use statement (line '33', column '26'). Open
Open
$maximizer = new CSS3Maximizer();
- 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 unused parameters such as '$layout'. Open
Open
public static function preProcess(Ajde_Layout $layout)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$compressor'. Open
Open
public static function postCompress(Ajde_Resource_Local_Compressor $compressor)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
The class Ajde_Document_Processor_Css_Maximizer is not named in CamelCase. Open
Open
class Ajde_Document_Processor_Css_Maximizer extends Ajde_Object_Static implements Ajde_Document_Processor
{
// Not implemented
public static function preProcess(Ajde_Layout $layout)
{
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}