Update some code style

This commit is contained in:
James Cole
2020-07-31 15:12:26 +02:00
parent c3d8d70b34
commit e46958c23e
11 changed files with 51 additions and 117 deletions

View File

@@ -255,7 +255,7 @@ trait RecurrenceValidation
{
try {
Carbon::createFromFormat('Y-m-d', $moment);
} catch (InvalidArgumentException|Exception $e) {
} catch (InvalidArgumentException $e) {
Log::debug(sprintf('Invalid argument for Carbon: %s', $e->getMessage()));
$validator->errors()->add(sprintf('repetitions.%d.moment', $index), (string)trans('validation.valid_recurrence_rep_moment'));
}