lib/Ajde/Document/Processor/Css/Maximizer.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '33', column '26').
Open

        $maximizer = new CSS3Maximizer();

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

    public static function preProcess(Ajde_Layout $layout)

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

    public static function postCompress(Ajde_Resource_Local_Compressor $compressor)

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

class Ajde_Document_Processor_Css_Maximizer extends Ajde_Object_Static implements Ajde_Document_Processor
{
    // Not implemented
    public static function preProcess(Ajde_Layout $layout)
    {

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

There are no issues that match your filters.

Category
Status