scrutinizer-ci / phpmd

PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.
http://phpmd.org
Other
0 stars 2 forks source link

phpmd incorrectly reporting private static variable as unused #5

Open ewinslow opened 10 years ago

ewinslow commented 10 years ago

see https://scrutinizer-ci.com/g/Elgg/Elgg/issues/1.x/files/engine/classes/ElggMemcache.php?selectedSeverities%5B0%5D=5&orderField=path&order=asc&issueId=91b418df-5da2-4aee-8f7a-b3bf3db1a8c2

It is used on lines 97 and 99.

ewinslow commented 10 years ago

Similar issue: https://scrutinizer-ci.com/g/Elgg/Elgg/issues/1.x/files/engine/classes/ElggStaticVariableCache.php?selectedSeverities%5B0%5D=5&orderField=path&order=asc&issueId=d4bddd51-f658-4915-bc28-b10895bc9abb