mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix various code.
This commit is contained in:
@@ -85,14 +85,13 @@ trait FormSupport
|
||||
{
|
||||
// Get errors from session:
|
||||
/** @var null|MessageBag $errors */
|
||||
$errors = session('errors');
|
||||
$classes = 'form-group';
|
||||
$errors = session('errors');
|
||||
|
||||
if (null !== $errors && $errors->has($name)) {
|
||||
$classes = 'form-group has-error has-feedback';
|
||||
return 'form-group has-error has-feedback';
|
||||
}
|
||||
|
||||
return $classes;
|
||||
return 'form-group';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -112,7 +111,7 @@ trait FormSupport
|
||||
}
|
||||
|
||||
if ($value instanceof Carbon) {
|
||||
$value = $value->format('Y-m-d');
|
||||
return $value->format('Y-m-d');
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
Reference in New Issue
Block a user