jaroslavtyc/drd-plus-codes

View on GitHub
tests/Codes/Armaments/ProjectileCodeTest.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '15', column '27').
Open

        $constants = (new \ReflectionClass($sutClass))->getConstants();

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 method It_is_projectile is not named in camelCase.
Open

    public function It_is_projectile()
    {
        $sutClass = self::getSutClass();
        $constants = (new \ReflectionClass($sutClass))->getConstants();
        $value = reset($constants);

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

The method I_can_find_out_if_is_dart is not named in camelCase.
Open

    abstract public function I_can_find_out_if_is_dart();

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

The method I_can_find_out_if_is_arrow is not named in camelCase.
Open

    abstract public function I_can_find_out_if_is_arrow();

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

The method I_can_find_out_if_is_sling_stone is not named in camelCase.
Open

    abstract public function I_can_find_out_if_is_sling_stone();

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