Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -35,22 +35,18 @@ class Country extends Rule {
*
* @param mixed $country The country value detected.
*/
public function check($country) : bool { // phpcs:ignore
public function check($country) : bool { // phpcs:ignore
$check = true;
if ($country) {
$country = strtoupper((string) $country);
$allowed_countries = array_keys(wu_get_countries());
$check = in_array($country, $allowed_countries, true);
} // end if;
}
return $check;
} // end check;
} // end class Country;
}
}