Use PHP_SAPI instead of php_sapi_name() per phpcs