No exceptions
Thanks to Tobias for this code candy
return verify_iban($this->iban);
# we could throw exceptions of various types, but why -
# does it really add anything? possibly some slightly
# better user feedback potential. however, this can be
# written by hand by performing individual checks ala
# the code in verify_iban() itself where required, which
# is likely almost never. for the increased complexity
# and maintenance / documentation cost, i say,
# therefore: no. no exceptions.
Source: Direct link to the source code
Software: php-iban
Programming language: PHP


(3 Bewertungen, Durchschnitt: 4,67 von 5)