fixed phpcs warning in API listener