phossa2/event

View on GitHub
src/Event/EventDispatcher.php

Summary

Maintainability
A
0 mins
Test Coverage

The parameter $event_proto is not named in camelCase.
Open

    public function __construct(
        $scopes = '',
        EventInterface $event_proto = null
    ) {
        // set scopes
Severity: Minor
Found in src/Event/EventDispatcher.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The variable $event_proto is not named in camelCase.
Open

    public function __construct(
        $scopes = '',
        EventInterface $event_proto = null
    ) {
        // set scopes
Severity: Minor
Found in src/Event/EventDispatcher.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

There are no issues that match your filters.

Category
Status