Smartanswers: Marriage abroad - content update 


https://github.com/alphagov/smart-answers#
ticket: https://www.pivotaltracker.com/story/show/74592704
doc with changes: https://docs.google.com/a/digital.cabinet-office.gov.uk/document/d/19lH4WxwqnZ0hHHR9tcBa4vT5SJeLjT-I5k2YVRQ1DTs/edit#

A tiny refactor seems possible here. It makes things a bit more readable and avoids uses of if-nots :-)

```
if not %w(zimbabwe).include?(ceremony_country)
  if %w(uk).include?(resident_of)
    phrases << :uk_resident_os_ceremony_not_zimbabwe
  elsif residency_country == ceremony_country
    phrases << :local_resident_os_ceremony_not_zimbabwe
  else
    phrases << :other_resident_os_ceremony_not_zimbabwe
  end
else
  if %w(uk).include?(resident_of)
    phrases << :uk_resident_os_ceremony_zimbabwe
  elsif residency_country == ceremony_country
    phrases << :local_resident_os_ceremony_zimbabwe
  else
    phrases << :other_resident_os_ceremony_zimbabwe
  end
end
if %w(zimbabwe).include?(ceremony_country)
  phrases << :commonwealth_os_all_cni_zimbabwe
else
  phrases << :commonwealth_os_all_cni
end
```
The first thing we can start with is inverting the first if statement. 

```
if %w(zimbabwe).include?(ceremony_country)
  if %w(uk).include?(resident_of)
    phrases << :uk_resident_os_ceremony_zimbabwe
  elsif residency_country == ceremony_country
    phrases << :local_resident_os_ceremony_zimbabwe
  else
    phrases << :other_resident_os_ceremony_zimbabwe
  end
else
  if %w(uk).include?(resident_of)
    phrases << :uk_resident_os_ceremony_not_zimbabwe
  elsif residency_country == ceremony_country
    phrases << :local_resident_os_ceremony_not_zimbabwe
  else
    phrases << :other_resident_os_ceremony_not_zimbabwe
  end
end
if %w(zimbabwe).include?(ceremony_country)
  phrases << :commonwealth_os_all_cni_zimbabwe
else
  phrases << :commonwealth_os_all_cni
end
```

A second step could be noticing that in both places we are checking if zimbabwe is the ceremony country:
```
if %w(zimbabwe).include?(ceremony_country)
  if %w(uk).include?(resident_of)
    phrases << :uk_resident_os_ceremony_zimbabwe
  elsif residency_country == ceremony_country
    phrases << :local_resident_os_ceremony_zimbabwe
  else
    phrases << :other_resident_os_ceremony_zimbabwe
  end
  phrases << :commonwealth_os_all_cni_zimbabwe
else
  if %w(uk).include?(resident_of)
    phrases << :uk_resident_os_ceremony_not_zimbabwe
  elsif residency_country == ceremony_country
    phrases << :local_resident_os_ceremony_not_zimbabwe
  else
    phrases << :other_resident_os_ceremony_not_zimbabwe
  end
  phrases << :commonwealth_os_all_cni
end
```