Code Duplication    Length = 8-8 lines in 2 locations

build/integration/features/bootstrap/WebDav.php 2 locations

@@ 380-387 (lines=8) @@
377
	 * @param string $user
378
	 * @param string $file
379
	 */
380
	public function userDeletesFile($user, $file)  {
381
		try {
382
			$this->response = $this->makeDavRequest($user, 'DELETE', $file, []);
383
		} catch (\GuzzleHttp\Exception\ServerException $e) {
384
			// 4xx and 5xx responses cause an exception
385
			$this->response = $e->getResponse();
386
		}
387
	}
388
389
	/**
390
	 * @Given User :user created a folder :destination
@@ 394-401 (lines=8) @@
391
	 * @param string $user
392
	 * @param string $destination
393
	 */
394
	public function userCreatedAFolder($user, $destination){
395
		try {
396
			$this->response = $this->makeDavRequest($user, "MKCOL", $destination, []);
397
		} catch (\GuzzleHttp\Exception\ServerException $e) {
398
			// 4xx and 5xx responses cause an exception
399
			$this->response = $e->getResponse();
400
		}
401
	}
402
403
	/**
404
	 * @Given user :user uploads chunk file :num of :total with :data to :destination