netglue/prismic-php-kit

View on GitHub
src/Prismic/Document/Fragment/Embed.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

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

    private $attributes = [];

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

There are no issues that match your filters.

Category
Status