public static function AddressInterface::makeCanonical in Ubercart 8.4
Utility function to simplify comparison of address properties.
For the purpose of this function, the canonical form is stripped of all whitespace and has been converted to all upper case. This ensures that we don't get false inequalities when comparing address properties that a human would consider identical, but may be capitalized differently or have different whitespace.
Parameters
string $string: String to make canonical.
Return value
string Canonical form of input string.
File
- uc_store/
src/ AddressInterface.php, line 238
Class
- AddressInterface
- Defines an object to hold Ubercart mailing address information.
Namespace
Drupal\uc_storeCode
public static function makeCanonical($string);