Dhii/di-abstract

View on GitHub
src/AbstractParentAwareContainer.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _hasParentContainer is not named in camelCase.
Open

    protected function _hasParentContainer()
    {
        return $this->parentContainer instanceof BaseContainerInterface;
    }
Severity: Minor
Found in src/AbstractParentAwareContainer.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 _setParentContainer is not named in camelCase.
Open

    protected function _setParentContainer(BaseContainerInterface $container = null)
    {
        $this->parentContainer = $container;

        return $this;
Severity: Minor
Found in src/AbstractParentAwareContainer.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 _getRootContainer is not named in camelCase.
Open

    protected function _getRootContainer()
    {
        $parent = $this->_getParentContainer();
        do {
            $root = $parent;
Severity: Minor
Found in src/AbstractParentAwareContainer.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 _resolveDefinition is not named in camelCase.
Open

    protected function _resolveDefinition($definition, $config)
    {
        $root      = $this->_getRootContainer();
        $container = $root ? $root : $this;

Severity: Minor
Found in src/AbstractParentAwareContainer.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 _getParentContainer is not named in camelCase.
Open

    protected function _getParentContainer()
    {
        return ($this->_hasParentContainer())
            ? $this->parentContainer
            : null;
Severity: Minor
Found in src/AbstractParentAwareContainer.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