code refactoring for recent works related to dropzone

This commit is contained in:
Sevan Nerse
2021-02-10 16:29:33 +03:00
parent baa9bc64d7
commit 5adc60b688
2 changed files with 4 additions and 6 deletions

View File

@ -16,7 +16,7 @@ class Dropzone
*/
public function handle($request, Closure $next)
{
if (($request->method() != 'POST') && ($request->method() != 'PATCH')) {
if (!in_array($request->method(), ['POST', 'PATCH'])) {
return $next($request);
}