mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Applied latest styleci changes
This commit is contained in:
@@ -15,6 +15,7 @@ class CustomValidationServiceProvider extends ServiceProvider
|
||||
{
|
||||
Validator::extend('image_extension', function ($attribute, $value, $parameters, $validator) {
|
||||
$extension = strtolower($value->getClientOriginalExtension());
|
||||
|
||||
return ImageService::isExtensionSupported($extension);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user