Code Duplication    Length = 7-7 lines in 5 locations

apps/files_external/lib/Lib/Storage/SMB.php 5 locations

@@ 400-406 (lines=7) @@
397
		} catch (ForbiddenException $e) {
398
			$this->swallow(__FUNCTION__, $e);
399
		} catch (Exception $e) {
400
			if ($e->getCode() === 16) {
401
				$this->swallow(__FUNCTION__, $e);
402
			} else {
403
				$ex = new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
404
				$this->leave(__FUNCTION__, $ex);
405
				throw $ex;
406
			}
407
		}
408
		return $this->leave(__FUNCTION__, $result);
409
	}
@@ 490-496 (lines=7) @@
487
		} catch (ForbiddenException $e) {
488
			$this->swallow(__FUNCTION__, $e);
489
		} catch (Exception $e) {
490
			if ($e->getCode() === 16) {
491
				$this->swallow(__FUNCTION__, $e);
492
			} else {
493
				$ex = new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
494
				$this->leave(__FUNCTION__, $ex);
495
				throw $ex;
496
			}
497
		}
498
		return $this->leave(__FUNCTION__, $result);
499
	}
@@ 527-533 (lines=7) @@
524
		} catch (ForbiddenException $e) {
525
			$this->swallow(__FUNCTION__, $e);
526
		} catch (Exception $e) {
527
			if ($e->getCode() === 16) {
528
				$this->swallow(__FUNCTION__, $e);
529
			} else {
530
				$ex = new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
531
				$this->leave(__FUNCTION__, $ex);
532
				throw $ex;
533
			}
534
		}
535
		return $this->leave(__FUNCTION__, $result);
536
	}
@@ 548-554 (lines=7) @@
545
				$result = true;
546
			}
547
		} catch (Exception $e) {
548
			if ($e->getCode() === 16) {
549
				$this->swallow(__FUNCTION__, $e);
550
			} else {
551
				$ex = new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
552
				$this->leave(__FUNCTION__, $ex);
553
				throw $ex;
554
			}
555
		}
556
		return $this->leave(__FUNCTION__, $result);
557
	}
@@ 609-615 (lines=7) @@
606
		} catch (AlreadyExistsException $e) {
607
			$this->swallow(__FUNCTION__, $e);
608
		} catch (Exception $e) {
609
			if ($e->getCode() === 16) {
610
				$this->swallow(__FUNCTION__, $e);
611
			} else {
612
				$ex = new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
613
				$this->leave(__FUNCTION__, $ex);
614
				throw $ex;
615
			}
616
		}
617
		return $this->leave(__FUNCTION__, $result);
618
	}