[Phpmyadmin-devel] PHPMD and false alarms

6 Jan
2014
6 Jan
'14
2:34 p.m.
Hi devs, be aware that there can be false alarms in the PHPMD report. For example, in foreach ($tabs as $key => $value) { there is a report about unused $value, but we need it anyway, due to the foreach syntax. -- Marc Delisle http://infomarc.info | http://phpmyadmin.net

6 Jan
6 Jan
3:56 p.m.
Hi, 2014/1/6 Marc Delisle <marc@infomarc.info>
Hi devs, be aware that there can be false alarms in the PHPMD report. For example, in foreach ($tabs as $key => $value) {
there is a report about unused $value, but we need it anyway, due to the foreach syntax.
We could change this by extracting the keys (with array_keys()) and loop on this new array. But I don't know the effect on the performance… This could be tested. Hugues.
4273
Age (days ago)
4273
Last active (days ago)
1 comments
2 participants
participants (2)
-
Hugues Peccatte
-
Marc Delisle