fixing phpcs warnings