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

@@ 454-462 (lines=9) @@
451
								'verify' => realpath(__DIR__ . '/../../../3rdparty/google-api-php-client/src/Google/IO/cacerts.pem'),
452
							]);
453
						} catch (RequestException $e) {
454
							if(!is_null($e->getResponse())) {
455
								if ($e->getResponse()->getStatusCode() === 404) {
456
									return false;
457
								} else {
458
									throw $e;
459
								}
460
							} else {
461
								throw $e;
462
							}
463
						}
464
465
						$handle = $response->getBody();