Dhii/di-abstract

View on GitHub

Showing 65 of 65 total issues

The variable $_definition is not named in camelCase.
Open

    protected function _register(BaseServiceProvider $provider)
    {
        foreach ($provider->getServices() as $_id => $_definition) {
            $this->_setDefinition($_id, $_definition);
        }
Severity: Minor
Found in src/AbstractContainer.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 $_id 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

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 $_definition 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

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 $_id is not named in camelCase.
Open

    protected function _register(BaseServiceProvider $provider)
    {
        foreach ($provider->getServices() as $_id => $_definition) {
            $this->_setDefinition($_id, $_definition);
        }
Severity: Minor
Found in src/AbstractContainer.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 $_container is not named in camelCase.
Open

    protected function _hasDelegated($id)
    {
        $containers = $this->_getContainersReversed();

        foreach ($containers as $_container) {
Severity: Minor
Found in src/AbstractCompositeContainer.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 $_container is not named in camelCase.
Open

    protected function _hasDelegated($id)
    {
        $containers = $this->_getContainersReversed();

        foreach ($containers as $_container) {
Severity: Minor
Found in src/AbstractCompositeContainer.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 $_definition 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

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 $_key is not named in camelCase.
Open

    protected function _getContainers()
    {
        $containers = array();
        foreach ($this->serviceDefinitions as $_key => $_value) {
            $service = $this->_get($_key);
Severity: Minor
Found in src/AbstractCompositeContainer.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 $_value is not named in camelCase.
Open

    protected function _getContainers()
    {
        $containers = array();
        foreach ($this->serviceDefinitions as $_key => $_value) {
            $service = $this->_get($_key);
Severity: Minor
Found in src/AbstractCompositeContainer.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 $_id 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

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 $_definition is not named in camelCase.
Open

    protected function _register(BaseServiceProvider $provider)
    {
        foreach ($provider->getServices() as $_id => $_definition) {
            $this->_setDefinition($_id, $_definition);
        }
Severity: Minor
Found in src/AbstractContainer.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 $_key is not named in camelCase.
Open

    protected function _getContainers()
    {
        $containers = array();
        foreach ($this->serviceDefinitions as $_key => $_value) {
            $service = $this->_get($_key);
Severity: Minor
Found in src/AbstractCompositeContainer.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 $_container is not named in camelCase.
Open

    protected function _hasDelegated($id)
    {
        $containers = $this->_getContainersReversed();

        foreach ($containers as $_container) {
Severity: Minor
Found in src/AbstractCompositeContainer.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 $_key is not named in camelCase.
Open

    protected function _getContainers()
    {
        $containers = array();
        foreach ($this->serviceDefinitions as $_key => $_value) {
            $service = $this->_get($_key);
Severity: Minor
Found in src/AbstractCompositeContainer.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 $_id is not named in camelCase.
Open

    protected function _register(BaseServiceProvider $provider)
    {
        foreach ($provider->getServices() as $_id => $_definition) {
            $this->_setDefinition($_id, $_definition);
        }
Severity: Minor
Found in src/AbstractContainer.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 method _add is not named in camelCase.
Open

    protected function _add(BaseContainerInterface $container)
    {
        $this->_set($this->_createContainerId($container), function (BaseContainerInterface $c, $previous = null) use ($container) {
            return $container;
        });
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 _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 _hasDelegated is not named in camelCase.
Open

    protected function _hasDelegated($id)
    {
        $containers = $this->_getContainersReversed();

        foreach ($containers as $_container) {
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 _getContainers is not named in camelCase.
Open

    protected function _getContainers()
    {
        $containers = array();
        foreach ($this->serviceDefinitions as $_key => $_value) {
            $service = $this->_get($_key);
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 _getContainersReversed is not named in camelCase.
Open

    protected function _getContainersReversed()
    {
        return array_reverse($this->_getContainers());
    }
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

Severity
Category
Status
Source
Language