Dhii/simple-test-abstract

View on GitHub
src/Test/AbstractSource.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _validateItem is not named in camelCase.
Open

    protected function _validateItem($item)
    {
        if (!($item instanceof TestInterface)) {
            throw new InvalidArgumentException(sprintf('Item must be a valid test'));
        }
Severity: Minor
Found in src/Test/AbstractSource.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

The method _getItemKey is not named in camelCase.
Open

    protected function _getItemKey($item)
    {
        return $item->getKey();
    }
Severity: Minor
Found in src/Test/AbstractSource.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