Code Duplication    Length = 10-10 lines in 2 locations

src/Oauth/Parameters.php 1 location

@@ 87-96 (lines=10) @@
84
        ];
85
    }
86
87
    private function getParameters(): array
88
    {
89
        $parameters = [];
90
91
        foreach ($this->parameters as $parameter) {
92
            $parameters[$parameter->getKey()] = $parameter->getValue();
93
        }
94
95
        return $parameters;
96
    }
97
}
98

src/Request/Url.php 1 location

@@ 41-50 (lines=10) @@
38
        return $url;
39
    }
40
41
    private function buildQueryString(): string
42
    {
43
        $parameters = [];
44
45
        foreach ($this->parameters as $parameter) {
46
            $parameters[$parameter->getKey()] = $parameter->getValue();
47
        }
48
49
        return '?' . http_build_query($parameters);
50
    }
51
}
52