Cyclotron Line Formation in a Radiation-driven Outflow