Dhii/di-abstract

View on GitHub

Showing 65 of 65 total issues

The method _createContainerException is not named in camelCase.
Open

    abstract protected function _createContainerException($message, $code = 0, \Exception $innerException = null);
Severity: Minor
Found in src/AbstractServiceProvider.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

The method _createContainerId is not named in camelCase.
Open

    protected function _createContainerId(BaseContainerInterface $container)
    {
        do {
            $id = uniqid(static::CONTAINER_ID_PREFIX);
        } while ($this->_hasDefinition($id));
Severity: Minor
Found in src/AbstractCompositeContainer.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 _getDelegated is not named in camelCase.
Open

    protected function _getDelegated($id)
    {
        if (!($having = $this->_hasDelegated($id))) {
            throw $this->_createNotFoundException(sprintf('Could not create service for ID "%1$s": no service defined', $id));
        }
Severity: Minor
Found in src/AbstractCompositeContainer.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 _addMany is not named in camelCase.
Open

    protected function _addMany($definitions)
    {
        foreach ($definitions as $_id => $_definition) {
            $this->_add($_id, $_definition);
        }
Severity: Minor
Found in src/AbstractServiceProvider.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

Severity
Category
Status
Source
Language