meyfa/php-svg

View on GitHub
src/Fonts/TrueTypeFontFile.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

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

        $version = self::uint16($file);
Severity: Minor
Found in src/Fonts/TrueTypeFontFile.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 parameters such as '$encodingID'.
Open

    private static function decodeString(string $string, int $platformID, int $encodingID): string
Severity: Minor
Found in src/Fonts/TrueTypeFontFile.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

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

TODO found
Open

        // TODO implement detection for monospace fonts
Severity: Minor
Found in src/Fonts/TrueTypeFontFile.php by fixme

TODO found
Open

                // TODO: implement
Severity: Minor
Found in src/Fonts/TrueTypeFontFile.php by fixme

There are no issues that match your filters.

Category
Status