Clean up some code routines.

This commit is contained in:
James Cole
2015-07-07 01:07:19 +02:00
parent 2d4b148b2c
commit bdf7eee72f
5 changed files with 135 additions and 56 deletions

View File

@@ -62,6 +62,13 @@ class FireflyValidator extends Validator
*/
public function validateIban($attribute, $value)
{
if (!is_string($value)) {
return false;
}
if (strlen($value) === 0) {
return false;
}
$value = strtoupper($value);
if (strlen($value) < 6) {