Code Duplication    Length = 7-7 lines in 2 locations

lib/private/files/storage/dav.php 2 locations

@@ 776-782 (lines=7) @@
773
				return $remoteMtime > $time;
774
			}
775
		} catch (ClientHttpException $e) {
776
			if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) {
777
				if ($path === '') {
778
					// if root is gone it means the storage is not available
779
					throw new StorageNotAvailableException(get_class($e).': '.$e->getMessage());
780
				}
781
				return false;
782
			}
783
			$this->convertException($e, $path);
784
			return false;
785
		} catch (\Exception $e) {
@@ 811-817 (lines=7) @@
808
			if ($e->getHttpStatus() === 423) {
809
				throw new \OCP\Lock\LockedException($path);
810
			}
811
			if ($e->getHttpStatus() === 401) {
812
				// either password was changed or was invalid all along
813
				throw new StorageInvalidException(get_class($e).': '.$e->getMessage());
814
			} else if ($e->getHttpStatus() === 405) {
815
				// ignore exception for MethodNotAllowed, false will be returned
816
				return;
817
			}
818
			throw new StorageNotAvailableException(get_class($e).': '.$e->getMessage());
819
		} else if ($e instanceof ClientException) {
820
			// connection timeout or refused, server could be temporarily down