patch #5860 barcode analyzer fixes

Fixes some php analyser issues