Fix variable references
Fix variable references
Fix variable references
Fix variable references
Fix check of length
Remove dead variable
PHPMD