mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 06:01:21 +00:00
Use PSR-12 code style
This commit is contained in:
@@ -35,7 +35,6 @@ use Log;
|
||||
*/
|
||||
trait GroupValidation
|
||||
{
|
||||
|
||||
/**
|
||||
* @param Validator $validator
|
||||
*
|
||||
@@ -62,10 +61,12 @@ trait GroupValidation
|
||||
// set errors:
|
||||
if (false === $hasAccountInfo && !$hasJournalId) {
|
||||
$validator->errors()->add(
|
||||
sprintf('transactions.%d.source_id', $index), (string) trans('validation.generic_no_source')
|
||||
sprintf('transactions.%d.source_id', $index),
|
||||
(string) trans('validation.generic_no_source')
|
||||
);
|
||||
$validator->errors()->add(
|
||||
sprintf('transactions.%d.destination_id', $index), (string) trans('validation.generic_no_destination')
|
||||
sprintf('transactions.%d.destination_id', $index),
|
||||
(string) trans('validation.generic_no_destination')
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -93,7 +94,8 @@ trait GroupValidation
|
||||
// no valid descriptions?
|
||||
if (0 === $validDescriptions) {
|
||||
$validator->errors()->add(
|
||||
'transactions.0.description', (string) trans('validation.filled', ['attribute' => (string) trans('validation.attributes.description')])
|
||||
'transactions.0.description',
|
||||
(string) trans('validation.filled', ['attribute' => (string) trans('validation.attributes.description')])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user