Code Duplication    Length = 8-8 lines in 3 locations

src/Manager/RequestManager.php 3 locations

@@ 69-76 (lines=8) @@
66
     *
67
     * @return string|null
68
     */
69
    public function getAccept(Request $request, string $default = null)
70
    {
71
        if (null === $value = $this->acceptNegotiator->negotiate($request)) {
72
            return $default;
73
        }
74
75
        return $value->getValue();
76
    }
77
78
    /**
79
     * @param Request     $request
@@ 84-91 (lines=8) @@
81
     *
82
     * @return string|null
83
     */
84
    public function getAcceptLanguage(Request $request, string $default = null)
85
    {
86
        if (null === $value = $this->acceptLanguageNegotiator->negotiate($request)) {
87
            return $default;
88
        }
89
90
        return $value->getValue();
91
    }
92
93
    /**
94
     * @param Request     $request
@@ 99-106 (lines=8) @@
96
     *
97
     * @return string|null
98
     */
99
    public function getContentType(Request $request, string $default = null)
100
    {
101
        if (null === $value = $this->contentTypeNegotiator->negotiate($request)) {
102
            return $default;
103
        }
104
105
        return $value->getValue();
106
    }
107
108
    /**
109
     * @param Request       $request