YetiForceCompany/YetiForceCRM

View on GitHub
include/runtime/cache/Connectors.php

Summary

Maintainability
A
0 mins
Test Coverage
D
66%

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Vtiger_Cache_Connector_Memory

The class Vtiger_Cache_Connector_Memory is not named in CamelCase.
Open

class Vtiger_Cache_Connector_Memory
{
    public function set($key, $value)
    {
        $this->$key = $value;
Severity: Minor
Found in include/runtime/cache/Connectors.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        return true;

Spaces must be used to indent lines; tabs are not allowed
Open

        return $this->$key ?? false;

Spaces must be used to indent lines; tabs are not allowed
Open

    public function set($key, $value)

Spaces must be used to indent lines; tabs are not allowed
Open

    public function get($key)

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    public function flush()

Spaces must be used to indent lines; tabs are not allowed
Open

        $this->$key = $value;

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Class name "Vtiger_Cache_Connector_Memory" is not in camel caps format
Open

class Vtiger_Cache_Connector_Memory

There are no issues that match your filters.

Category
Status