phossa2/event

View on GitHub

Showing 6 of 6 total issues

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

The variable $event_manager is not named in camelCase.
Open

    public static function getEventManager()
    {
        if (!isset(self::$event_manager[get_called_class()])) {
            self::$event_manager[get_called_class()] =
                EventDispatcher::getShareable(static::$static_scope);
Severity: Minor
Found in src/Event/StaticEventDispatcher.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

The variable $event_manager is not named in camelCase.
Open

    public static function setEventManager(EventManagerInterface $eventManager)
    {
        self::$event_manager[get_called_class()] = $eventManager;
    }
Severity: Minor
Found in src/Event/StaticEventDispatcher.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

The variable $event_manager is not named in camelCase.
Open

    public static function getEventManager()
    {
        if (!isset(self::$event_manager[get_called_class()])) {
            self::$event_manager[get_called_class()] =
                EventDispatcher::getShareable(static::$static_scope);
Severity: Minor
Found in src/Event/StaticEventDispatcher.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

The variable $event_manager is not named in camelCase.
Open

    public static function getEventManager()
    {
        if (!isset(self::$event_manager[get_called_class()])) {
            self::$event_manager[get_called_class()] =
                EventDispatcher::getShareable(static::$static_scope);
Severity: Minor
Found in src/Event/StaticEventDispatcher.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

Severity
Category
Status
Source
Language