Code Duplication    Length = 5-5 lines in 2 locations

lib/private/Files/Storage/DAV.php 2 locations

@@ 270-274 (lines=5) @@
267
				);
268
				$this->statCache->set($path, $response);
269
			} catch (ClientHttpException $e) {
270
				if ($e->getHttpStatus() === 404) {
271
					$this->statCache->clear($path . '/');
272
					$this->statCache->set($path, false);
273
					return false;
274
				}
275
				$this->convertException($e, $path);
276
			} catch (\Exception $e) {
277
				$this->convertException($e, $path);
@@ 660-664 (lines=5) @@
657
			$response = $this->client->request($method, $this->encodePath($path), $body);
658
			return $response['statusCode'] == $expected;
659
		} catch (ClientHttpException $e) {
660
			if ($e->getHttpStatus() === 404 && $method === 'DELETE') {
661
				$this->statCache->clear($path . '/');
662
				$this->statCache->set($path, false);
663
				return false;
664
			}
665
666
			$this->convertException($e, $path);
667
		} catch (\Exception $e) {