RebelCode/modular

View on GitHub

Showing 95 of 95 total issues

The variable $_module is not named in camelCase.
Open

    protected function _createModuleMap($modules)
    {
        $this->moduleMap = [];

        foreach ($modules as $_module) {

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

    protected function _setup()
    {
        // The list of containers that will be added to the composite container
        $containers = $this->_createAddCapableList();
        // The composite container - the container for this modular module
Severity: Minor
Found in src/Module/ModularModuleTrait.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 $_module is not named in camelCase.
Open

    protected function _run(ContainerInterface $c = null)
    {
        foreach ($this->modules as $_module) {
            $_module->run($c);
        }
Severity: Minor
Found in src/Module/ModularModuleTrait.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 $_dep is not named in camelCase.
Open

    protected function _getModuleDependencies(ModuleInterface $module)
    {
        if (!($module instanceof DependenciesAwareInterface)) {
            return [];
        }

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

    protected function _createModuleMap($modules)
    {
        $this->moduleMap = [];

        foreach ($modules as $_module) {

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

    protected function _getModuleDependencies(ModuleInterface $module)
    {
        if (!($module instanceof DependenciesAwareInterface)) {
            return [];
        }

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

    protected function _getModuleDependencies(ModuleInterface $module)
    {
        if (!($module instanceof DependenciesAwareInterface)) {
            return [];
        }

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

    protected function _getModuleDependencies(ModuleInterface $module)
    {
        if (!($module instanceof DependenciesAwareInterface)) {
            return [];
        }

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

    protected function _getModuleDependencies(ModuleInterface $module)
    {
        if (!($module instanceof DependenciesAwareInterface)) {
            return [];
        }

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

    protected function _run(ContainerInterface $c = null)
    {
        foreach ($this->modules as $_module) {
            $_module->run($c);
        }
Severity: Minor
Found in src/Module/ModularModuleTrait.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 $_module is not named in camelCase.
Open

    protected function _setup()
    {
        // The list of containers that will be added to the composite container
        $containers = $this->_createAddCapableList();
        // The composite container - the container for this modular module
Severity: Minor
Found in src/Module/ModularModuleTrait.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 _getFactoryCallback is not named in camelCase.
Open

    protected function _getFactoryCallback($config = null)
    {
        return function ($config = null) {
            $name   = $this->_containerGet($config, static::K_CFG_NAME);
            $params = $this->_containerGet($config, static::K_CFG_PARAMS);
Severity: Minor
Found in src/Events/EventFactory.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 _trigger is not named in camelCase.
Open

    abstract protected function _trigger($event, $data = []);
Severity: Minor
Found in src/Events/FilterCapableTrait.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 _getModuleDependencies is not named in camelCase.
Open

    protected function _getModuleDependencies(ModuleInterface $module)
    {
        if (!($module instanceof DependenciesAwareInterface)) {
            return [];
        }

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

    protected function _getCompositeContainerFactory()
    {
        return $this->compContainerFactory;
    }
Severity: Minor
Found in src/Module/AbstractBaseModule.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 _createContainer is not named in camelCase.
Open

    protected function _createContainer($definitions = [], ContainerInterface $parent = null)
    {
        $containerFactory = $this->_getContainerFactory();

        if (!($containerFactory instanceof ContainerFactoryInterface)) {
Severity: Minor
Found in src/Module/AbstractBaseModule.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 _setDependencies is not named in camelCase.
Open

    protected function _setDependencies($dependencies)
    {
        $this->dependencies = $this->_normalizeIterable($dependencies);
    }
Severity: Minor
Found in src/Module/DependenciesAwareTrait.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 _setConfig is not named in camelCase.
Open

    protected function _setConfig($config)
    {
        $this->config = $this->_normalizeContainer($config);
    }
Severity: Minor
Found in src/Config/ConfigAwareTrait.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 __ is not named in camelCase.
Open

    abstract protected function __($string, $args = [], $context = null);
Severity: Minor
Found in src/Events/DetachCapableTrait.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 _getConfig is not named in camelCase.
Open

    protected function _getConfig()
    {
        return $this->config;
    }
Severity: Minor
Found in src/Config/ConfigAwareTrait.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