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
@@ 164-166 (lines=3) @@
161
	 */
162
	protected function download($url){
163
		$response = $this->httpClient->get($url, ['timeout' => 600]);
164
		if ($response->getStatusCode() !== 200){
165
			throw new \UnexpectedValueException('Failed to download ' . $url . '. Server responded with ' . $response->getStatusCode() . ' instead of 200.');
166
		}
167
		return $response->getBody()->getContents();
168
	}
169