The Ivory Coast 's presidential election , its first in 10 years , was meant to restore stability to the West African country , which was split into rebel- and government-controlled areas during a 2002 civil war .