[Phpmyadmin-devel] PHPMD and false alarms

Hugues Peccatte hugues.peccatte at gmail.com
Mon Jan 6 15:56:57 CET 2014


Hi,

2014/1/6 Marc Delisle <marc at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20140106/b7d2fd9f/attachment-0001.html>


More information about the Developers mailing list