Code Duplication    Length = 13-14 lines in 2 locations

src/Manager/ResponseManager.php 2 locations

@@ 132-145 (lines=14) @@
129
     *
130
     * @return Response
131
     */
132
    public function createPermissionDeniedResponse(
133
        Request $request,
134
        string $accept,
135
        string $type,
136
        array $arguments
137
    ): Response {
138
        return $this->createResponseByError($request, 403, $accept, new Error(
139
            Error::SCOPE_HEADER,
140
            'permission_denied',
141
            'the wished resource does not exist',
142
            $type,
143
            $arguments
144
        ));
145
    }
146
147
    /**
148
     * @param Request $request
@@ 155-167 (lines=13) @@
152
     *
153
     * @return Response
154
     */
155
    public function createResourceNotFoundResponse(
156
        Request $request,
157
        string $accept,
158
        string $type,
159
        array $arguments
160
    ): Response {
161
        return $this->createResponseByError($request, 404, $accept, new Error(
162
            Error::SCOPE_RESOURCE,
163
            'resource_not_found',
164
            'the wished resource does not exist',
165
            $type, $arguments
166
        ));
167
    }
168
169
    /**
170
     * @param Request $request