California firefighters say they are close to containing a wildfire that has charred more than 30 square miles in the state.