Skip to content

Firefly III: a personal finances manager

Some minor code cleanup.

James Colea156dce28184
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;
}
/**