lib/Ajde/Component/Resource.php

Summary

Maintainability
A
45 mins
Test Coverage

Method requireResource has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

        $type,
        $action,
        $format = 'html',
        $base = null,
        $position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT,
Severity: Minor
Found in lib/Ajde/Component/Resource.php - About 45 mins to fix

    Missing class import via use statement (line '48', column '25').
    Open

            $resource = new Ajde_Resource_Remote($type, $url, $arguments);
    Severity: Minor
    Found in lib/Ajde/Component/Resource.php by phpmd

    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

    Missing class import via use statement (line '38', column '25').
    Open

            $resource = new Ajde_Resource_Public($type, $filename, $arguments);
    Severity: Minor
    Found in lib/Ajde/Component/Resource.php by phpmd

    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

    Missing class import via use statement (line '28', column '25').
    Open

            $resource = new Ajde_Resource_Local($type, $base, $action, $format, $arguments);
    Severity: Minor
    Found in lib/Ajde/Component/Resource.php by phpmd

    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

    The class Ajde_Component_Resource is not named in CamelCase.
    Open

    class Ajde_Component_Resource extends Ajde_Component
    {
        public static function processStatic(Ajde_Template_Parser $parser, $attributes)
        {
            $instance = new self($parser, $attributes);
    Severity: Minor
    Found in lib/Ajde/Component/Resource.php by phpmd

    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