mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code rearrange and optimise.
This commit is contained in:
@@ -33,7 +33,7 @@ class AccountFormRequest extends Request
|
||||
|
||||
$nameRule = 'required|between:1,100|uniqueAccountForUser';
|
||||
if (Account::find(Input::get('id'))) {
|
||||
$nameRule = 'required|between:1,100|belongsToUser:accounts|uniqueForUser:'.Input::get('id');
|
||||
$nameRule = 'required|between:1,100|belongsToUser:accounts|uniqueForUser:' . Input::get('id');
|
||||
}
|
||||
|
||||
return [
|
||||
|
Reference in New Issue
Block a user