Code Duplication    Length = 8-8 lines in 2 locations

src/Request/Request.php 2 locations

@@ 363-370 (lines=8) @@
360
     *
361
     * @return mixed
362
     */
363
    public function getGet($key = null, $default = null)
364
    {
365
        if ($key) {
366
            return $this->get[$key] ?? $default;
367
        }
368
369
        return $this->get;
370
    }
371
372
373
@@ 403-410 (lines=8) @@
400
     *
401
     * @return mixed
402
     */
403
    public function getPost($key = null, $default = null)
404
    {
405
        if ($key) {
406
            return $this->post[$key] ?? $default;
407
        }
408
409
        return $this->post;
410
    }
411
412
413