Fixed unused local variable $user
Updated phpmd rules