kai-jacobsen/kontentblocks

View on GitHub
core/Backend/Renderer/LayoutAreaRenderer.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$data'.
Open

    public function slotData($data = [])

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 using short method names like LayoutAreaRenderer::el(). The configured minimum method name length is 3.
Open

    public function el($attr)
    {
        $attr = esc_attr($attr);
        return "data-kba-el='{$attr}'";
    }

ShortMethodName

Since: 0.2

Detects when very short method names are used.

Example

class ShortMethod {
    public function a( $index ) { // Violation
    }
}

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

There are no issues that match your filters.

Category
Status