Code Duplication    Length = 13-19 lines in 2 locations

src/Extensions/SmokeResponseRetriever/Retriever/Koalamon/Retriever.php 1 location

@@ 53-65 (lines=13) @@
50
        return $preparedUrl;
51
    }
52
53
    public function next()
54
    {
55
        if (empty($this->systems)) {
56
            return false;
57
        }
58
59
        $system = array_pop($this->systems);
60
61
        $request = new Request(new Uri($system['url']), 'GET', 'php://memory', ['Accept-Encoding' => 'gzip']);
62
        $responses = $this->client->sendRequests(array($request));
63
64
        return $responses[0];
65
    }
66
67
    public function getComingFrom(UriInterface $uri)
68
    {

src/Extensions/SmokeResponseRetriever/Retriever/ListRetriever/Retriever.php 1 location

@@ 29-47 (lines=19) @@
26
        $this->urlStack = $this->urls;
27
    }
28
29
    public function next()
30
    {
31
        if (empty($this->urlStack)) {
32
            return false;
33
        }
34
35
        $url = array_pop($this->urlStack);
36
37
        $request = new Request(new Uri($url['url']), 'GET', 'php://memory', ['Accept-Encoding' => 'gzip']);
38
39
        try {
40
            $responses = $this->httpClient->sendRequests(array($request));
41
        } catch (\Ivory\HttpAdapter\MultiHttpAdapterException $e) {
42
            return $this->next();
43
        }
44
45
46
        return $responses[0];
47
    }
48
49
    public function getComingFrom(UriInterface $uri)
50
    {