Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 69-74 (lines=6) @@
66
	public function checkPublicSharedFile($filename) {
67
		$client = new Client();
68
		$options = [];
69
		if (count($this->lastShareData->data->element) > 0){
70
			$url = $this->lastShareData->data[0]->url;
71
		}
72
		else{
73
			$url = $this->lastShareData->data->url;
74
		}
75
		$fullUrl = $url . "/download";
76
		$options['save_to'] = "./$filename";
77
		$this->response = $client->get($fullUrl, $options);
@@ 92-97 (lines=6) @@
89
	public function checkPublicSharedFileWithPassword($filename, $password) {
90
		$client = new Client();
91
		$options = [];
92
		if (count($this->lastShareData->data->element) > 0){
93
			$token = $this->lastShareData->data[0]->token;
94
		}
95
		else{
96
			$token = $this->lastShareData->data->token;
97
		}
98
99
		$fullUrl = substr($this->baseUrl, 0, -4) . "public.php/webdav";
100
		$options['auth'] = [$token, $password];