Code Duplication    Length = 13-13 lines in 2 locations

DataCollector/ProfilingProvider.php 2 locations

@@ 35-47 (lines=13) @@
32
        $this->realProvider = $realProvider;
33
    }
34
35
    public function geocodeQuery(GeocodeQuery $query): Collection
36
    {
37
        $startTime = microtime(true);
38
        try {
39
            $result = $this->realProvider->geocodeQuery($query);
40
        } finally {
41
            $duration = (microtime(true) - $startTime) * 1000;
42
43
            $this->logQuery($query, $duration, $result);
44
        }
45
46
        return $result;
47
    }
48
49
    public function reverseQuery(ReverseQuery $query): Collection
50
    {
@@ 49-61 (lines=13) @@
46
        return $result;
47
    }
48
49
    public function reverseQuery(ReverseQuery $query): Collection
50
    {
51
        $startTime = microtime(true);
52
        try {
53
            $result = $this->realProvider->reverseQuery($query);
54
        } finally {
55
            $duration = (microtime(true) - $startTime) * 1000;
56
57
            $this->logQuery($query, $duration, $result);
58
        }
59
60
        return $result;
61
    }
62
63
    /**
64
     * @param GeocodeQuery|ReverseQuery     $query