Code Duplication    Length = 3-3 lines in 2 locations

src/Utils/Fetcher.php 2 locations

@@ 88-90 (lines=3) @@
85
			);
86
			$request->getEmitter()->on('progress', $onProgress);
87
			$response = $this->httpClient->send($request);
88
			if ($response->getStatusCode() !== 200){
89
				throw new \UnexpectedValueException('Failed to download ' . $url . '. Server responded with ' . $response->getStatusCode() . ' instead of 200.');
90
			}
91
		}
92
	}
93
@@ 168-170 (lines=3) @@
165
	 */
166
	protected function download($url){
167
		$response = $this->httpClient->get($url, ['timeout' => 600]);
168
		if ($response->getStatusCode() !== 200){
169
			throw new \UnexpectedValueException('Failed to download ' . $url . '. Server responded with ' . $response->getStatusCode() . ' instead of 200.');
170
		}
171
		return $response->getBody()->getContents();
172
	}
173