mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
Some minor code cleanup.
This commit is contained in:
@@ -152,17 +152,16 @@ class FireflyValidator extends Validator
|
|||||||
return true;
|
return true;
|
||||||
case 'amount_less':
|
case 'amount_less':
|
||||||
return is_numeric($value);
|
return is_numeric($value);
|
||||||
break;
|
|
||||||
case 'transaction_type':
|
case 'transaction_type':
|
||||||
$count = TransactionType::where('type', $value)->count();
|
$count = TransactionType::where('type', $value)->count();
|
||||||
|
|
||||||
return $count === 1;
|
return $count === 1;
|
||||||
break;
|
|
||||||
case 'invalid':
|
case 'invalid':
|
||||||
return false;
|
return false;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user