lib/Ajde/Component/Markdown.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '31', column '19').
Open

        throw new Ajde_Component_Exception('Missing required attributes for component call');
Severity: Minor
Found in lib/Ajde/Component/Markdown.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

TODO found
Open

        // TODO:
Severity: Minor
Found in lib/Ajde/Component/Markdown.php by fixme

The class Ajde_Component_Markdown is not named in CamelCase.
Open

class Ajde_Component_Markdown extends Ajde_Component
{
    public static function processStatic(Ajde_Template_Parser $parser, $attributes)
    {
        $instance = new self($parser, $attributes);
Severity: Minor
Found in lib/Ajde/Component/Markdown.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

The method _init is not named in camelCase.
Open

    protected function _init()
    {
        return [
            'text' => 'toHtml',
        ];
Severity: Minor
Found in lib/Ajde/Component/Markdown.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status