Code Duplication    Length = 9-9 lines in 2 locations

apps/files_external/lib/Lib/Storage/Dropbox.php 1 location

@@ 267-275 (lines=9) @@
264
							'stream' => true,
265
						]);
266
					} catch (RequestException $e) {
267
						if (!is_null($e->getResponse())) {
268
							if ($e->getResponse()->getStatusCode() === 404) {
269
								return false;
270
							} else {
271
								throw $e;
272
							}
273
						} else {
274
							throw $e;
275
						}
276
					}
277
278
					$handle = $response->getBody();

apps/files_external/lib/Lib/Storage/Google.php 1 location

@@ 468-476 (lines=9) @@
465
								'verify' => realpath(__DIR__ . '/../../../3rdparty/google-api-php-client/src/Google/IO/cacerts.pem'),
466
							]);
467
						} catch (RequestException $e) {
468
							if(!is_null($e->getResponse())) {
469
								if ($e->getResponse()->getStatusCode() === 404) {
470
									return false;
471
								} else {
472
									throw $e;
473
								}
474
							} else {
475
								throw $e;
476
							}
477
						}
478
479
						$handle = $response->getBody();