Some minor code cleanup.

This commit is contained in:
James Cole 2016-01-29 07:35:14 +01:00
parent c0b0e58720
commit a156dce281

View File

@ -152,17 +152,16 @@ class FireflyValidator extends Validator
return true;
case 'amount_less':
return is_numeric($value);
break;
case 'transaction_type':
$count = TransactionType::where('type', $value)->count();
return $count === 1;
break;
case 'invalid':
return false;
break;
}
}
return false;
}
/**