From a156dce28184cec328f10b69d15e5da7db6c8363 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 29 Jan 2016 07:35:14 +0100 Subject: [PATCH] Some minor code cleanup. --- app/Validation/FireflyValidator.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Validation/FireflyValidator.php b/app/Validation/FireflyValidator.php index 8fd6befc1f..5ee847bdf3 100644 --- a/app/Validation/FireflyValidator.php +++ b/app/Validation/FireflyValidator.php @@ -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; } /**