Code Duplication    Length = 10-10 lines in 2 locations

src/Driver/DropzoneBaseHandler.php 1 location

@@ 109-118 (lines=10) @@
106
     *
107
     * @return \Symfony\Component\HttpFoundation\Response
108
     */
109
    private function saveMonolith(UploadedFile $file, StorageConfig $config, Closure $fileUploaded = null): Response
110
    {
111
        $path = $file->store($config->getMergedDirectory(), [
112
            'disk' => $config->getDisk(),
113
        ]);
114
115
        $this->triggerFileUploadedEvent($config->getDisk(), $path, $fileUploaded);
116
117
        return new PercentageJsonResponse(100);
118
    }
119
120
    /**
121
     * @param \Illuminate\Http\UploadedFile $file

src/Driver/NgFileBaseHandler.php 1 location

@@ 125-134 (lines=10) @@
122
     *
123
     * @return \Symfony\Component\HttpFoundation\Response
124
     */
125
    private function saveMonolith(UploadedFile $file, StorageConfig $config, Closure $fileUploaded = null): Response
126
    {
127
        $path = $file->store($config->getMergedDirectory(), [
128
            'disk' => $config->getDisk(),
129
        ]);
130
131
        $this->triggerFileUploadedEvent($config->getDisk(), $path, $fileUploaded);
132
133
        return new PercentageJsonResponse(100);
134
    }
135
136
    /**
137
     * @param \Illuminate\Http\UploadedFile $file