Update LatchListener.php

Bug fix code style.