Fix code to pass phpcs