src/ExceptionRenderer/Json.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused local variables such as '$text'.
Open

        $text = (string) $previous; // need to trigger processAll;
Severity: Minor
Found in src/ExceptionRenderer/Json.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

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

Avoid unused local variables such as '$index'.
Open

        foreach ($trace as $index => $call) {
Severity: Minor
Found in src/ExceptionRenderer/Json.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

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

Line exceeds 120 characters; contains 122 characters
Open

            if ($inAtk && $call['file'] !== '' && !preg_match('~atk4[/\\\\][^/\\\\]+[/\\\\]src[/\\\\]~', $call['file'])) {

There are no issues that match your filters.

Category
Status