src/scope/Meta.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused private fields such as '$generic_num'.
Open

    private static $generic_num = 0;
Severity: Minor
Found in src/scope/Meta.php by phpmd

UnusedPrivateField

Since: 0.2

Detects when a private field is declared and/or assigned a value, but not used.

Example

class Something
{
    private static $FOO = 2; // Unused
    private $i = 5; // Unused
    private $j = 6;
    public function addOne()
    {
        return $this->j++;
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedprivatefield

The property $generic_num is not named in camelCase.
Open

class Meta
{
    const M_REF_COUNT = 'refcount';
    const M_TYPE      = 'type';
    const M_LABEL     = 'label'; // Implicit meta labels
Severity: Minor
Found in src/scope/Meta.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $label_num is not named in camelCase.
Open

class Meta
{
    const M_REF_COUNT = 'refcount';
    const M_TYPE      = 'type';
    const M_LABEL     = 'label'; // Implicit meta labels
Severity: Minor
Found in src/scope/Meta.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

There are no issues that match your filters.

Category
Status