src/Fonts/TrueTypeFontFile.php
Avoid unused local variables such as '$version'. Open
Open
$version = self::uint16($file);
- Read upRead up
- Exclude checks
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
Open
private static function decodeString(string $string, int $platformID, int $encodingID): string
- Read upRead up
- Exclude checks
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
Open
// TODO implement detection for monospace fonts
- Exclude checks
TODO found Open
Open
// TODO: implement
- Exclude checks