Code Duplication    Length = 10-10 lines in 2 locations

src/Http/Request.php 2 locations

@@ 155-164 (lines=10) @@
152
     *
153
     * @param string $path
154
     */
155
    public function setPath(string $path)
156
    {
157
        if (strpos($path, '?') !== false) {
158
            $path = explode('?', $path);
159
            $this->setQuery($path[1]);
160
            $path = $path[0];
161
        }
162
163
        $this->path = $path;
164
    }
165
166
    /**
167
     * Get uri path
@@ 181-190 (lines=10) @@
178
     *
179
     * @param string $uri
180
     */
181
    public function setUri(string $uri)
182
    {
183
        if (strpos($uri, '?') !== false) {
184
            $path = explode('?', $uri);
185
            $this->setQuery($path[1]);
186
            $uri = $path[0];
187
        }
188
189
        $this->uri = $uri;
190
    }
191
192
    /**
193
     * Get uri path