add to log error
fix phpcs