Code Duplication    Length = 9-9 lines in 2 locations

src/Nekland/PlacesApi/Api/Search.php 2 locations

@@ 31-39 (lines=9) @@
28
     * @param array  $other    More parameters, see google documentation
29
     * @return array
30
     */
31
    public function searchLocation($location, $radius, array $other = [])
32
    {
33
        $body = array_merge(
34
            ['location' => $location, 'radius' => $radius],
35
            $other
36
        );
37
38
        return $this->searchWithBody($body);
39
    }
40
41
    /**
42
     * All required information should be in an array
@@ 58-66 (lines=9) @@
55
     * @param array  $other    More parameters, see google documentation
56
     * @return SearchIterator
57
     */
58
    public function getSearchIterator($location, $radius, array $other = [])
59
    {
60
        $body = array_merge(
61
            ['location' => $location, 'radius' => $radius],
62
            $other
63
        );
64
65
        return new SearchIterator($this, $body);
66
    }
67
68
    /**
69
     * @param string $text