Dhii/data-object-abstract

View on GitHub
src/DataStoreAwareContainerTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _setDataStore is not named in camelCase.
Open

    protected function _setDataStore($dataStore)
    {
        if (!is_null($dataStore)) {
            $dataStore = $this->_normalizeContainer($dataStore);
        }
Severity: Minor
Found in src/DataStoreAwareContainerTrait.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 _normalizeContainer is not named in camelCase.
Open

    abstract protected function _normalizeContainer($container);
Severity: Minor
Found in src/DataStoreAwareContainerTrait.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 _getDataStore is not named in camelCase.
Open

    protected function _getDataStore()
    {
        return $this->dataStore;
    }
Severity: Minor
Found in src/DataStoreAwareContainerTrait.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