Code Duplication    Length = 19-19 lines in 2 locations

src/BasePassportServer.php 2 locations

@@ 229-247 (lines=19) @@
226
     *
227
     * @SuppressWarnings(PHPMD.BooleanArgumentFlag)
228
     */
229
    public function codeCreateAskResourceOwnerForApprovalResponse(
230
        ClientInterface $client,
231
        string $redirectUri = null,
232
        bool $isScopeModified = false,
233
        array $scopeList = null,
234
        string $state = null,
235
        array $extraParameters = []
236
    ): ResponseInterface {
237
        $this->logDebug('Asking resource owner for scope approval (code grant).');
238
        return $this->getIntegration()->createAskResourceOwnerForApprovalResponse(
239
            ResponseTypes::AUTHORIZATION_CODE,
240
            $client,
241
            $redirectUri,
242
            $isScopeModified,
243
            $scopeList,
244
            $state,
245
            $extraParameters
246
        );
247
    }
248
249
    /**
250
     * @inheritdoc
@@ 296-314 (lines=19) @@
293
     *
294
     * @SuppressWarnings(PHPMD.BooleanArgumentFlag)
295
     */
296
    public function implicitCreateAskResourceOwnerForApprovalResponse(
297
        ClientInterface $client,
298
        string $redirectUri = null,
299
        bool $isScopeModified = false,
300
        array $scopeList = null,
301
        string $state = null,
302
        array $extraParameters = []
303
    ): ResponseInterface {
304
        $this->logDebug('Asking resource owner for scope approval (implicit grant).');
305
        return $this->getIntegration()->createAskResourceOwnerForApprovalResponse(
306
            ResponseTypes::IMPLICIT,
307
            $client,
308
            $redirectUri,
309
            $isScopeModified,
310
            $scopeList,
311
            $state,
312
            $extraParameters
313
        );
314
    }
315
316
    /** @noinspection PhpTooManyParametersInspection
317
     * @inheritdoc