@@ -51,10 +51,9 @@ public function put(ChunkyUploadDto $dto, ?Closure $onCompleted = null): JsonRes
5151 ->reduce (fn (int $ carry , string $ item ): int => $ carry + $ this ->disk ->size ($ item ), 0 );
5252
5353 if ($ chunksOnDiskSize < $ dto ->totalSize ) {
54- return response ()->json (
55- ['message ' => 'uploaded ' . $ dto ->currentChunk . ' of ' . $ dto ->totalChunks ],
56- Response::HTTP_CREATED ,
57- );
54+ return response ()->json ([
55+ 'message ' => 'uploaded ' . $ dto ->currentChunk . ' of ' . $ dto ->totalChunks ,
56+ ], Response::HTTP_CREATED );
5857 }
5958
6059 $ completeFile = $ this ->mergeChunksIntoFile ($ dto ->identifier , $ dto ->filename , $ dto ->totalChunks );
@@ -63,10 +62,10 @@ public function put(ChunkyUploadDto $dto, ?Closure $onCompleted = null): JsonRes
6362 $ onCompleted ($ completeFile );
6463 }
6564
66- return response ()->json (
67- [ 'message ' => 'File successfully uploaded ' , ' file ' => $ completeFile ] ,
68- Response:: HTTP_CREATED ,
69- );
65+ return response ()->json ([
66+ 'message ' => 'File successfully uploaded ' ,
67+ ' file ' => $ completeFile ,
68+ ], Response:: HTTP_CREATED );
7069 }
7170
7271 /**
0 commit comments