Code Duplication    Length = 10-10 lines in 2 locations

src/Driver/DropzoneHandler.php 1 location

@@ 39-48 (lines=10) @@
36
    /**
37
     * {@inheritDoc}
38
     */
39
    public function handle(Request $request, StorageConfig $config, Closure $fileUploaded = null): Response
40
    {
41
        if ($this->isRequestMethodIn($request, [Request::METHOD_POST])) {
42
            return $this->save($request, $config, $fileUploaded);
43
        }
44
45
        throw new MethodNotAllowedHttpException([
46
            Request::METHOD_POST,
47
        ]);
48
    }
49
50
    /**
51
     * @param \Illuminate\Http\Request $request

src/Driver/MonolithHandler.php 1 location

@@ 32-41 (lines=10) @@
29
    /**
30
     * {@inheritDoc}
31
     */
32
    public function handle(Request $request, StorageConfig $config, Closure $fileUploaded = null): Response
33
    {
34
        if ($request->isMethod(Request::METHOD_POST)) {
35
            return $this->save($request, $config, $fileUploaded);
36
        }
37
38
        throw new MethodNotAllowedHttpException([
39
            Request::METHOD_POST,
40
        ]);
41
    }
42
43
    /**
44
     * @param \Illuminate\Http\Request $request