RebelCode/modular

View on GitHub
src/Events/FilterCapableTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _trigger is not named in camelCase.
Open

    abstract protected function _trigger($event, $data = []);
Severity: Minor
Found in src/Events/FilterCapableTrait.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 _filter is not named in camelCase.
Open

    protected function _filter($event, $key, $value)
    {
        return $this->_trigger($event, [$key => $value])->getParam($key);
    }
Severity: Minor
Found in src/Events/FilterCapableTrait.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