Code cleanup that (hopefully) matches style CI

This commit is contained in:
James Cole
2020-03-17 14:53:17 +01:00
parent 64462812fc
commit e02e747f1b
42 changed files with 221 additions and 219 deletions

View File

@@ -119,10 +119,10 @@ class BillRequest extends Request
$validator->after(
static function (Validator $validator) {
$data = $validator->getData();
$min = (float)($data['amount_min'] ?? 0);
$max = (float)($data['amount_max'] ?? 0);
$min = (float) ($data['amount_min'] ?? 0);
$max = (float) ($data['amount_max'] ?? 0);
if ($min > $max) {
$validator->errors()->add('amount_min', (string)trans('validation.amount_min_over_max'));
$validator->errors()->add('amount_min', (string) trans('validation.amount_min_over_max'));
}
}
);