Phase dynamics of the Bose–Einstein condensates