Code Duplication    Length = 11-13 lines in 3 locations

Security/LdapGuardAuthenticator.php 3 locations

@@ 205-217 (lines=13) @@
202
    /**
203
     * {@inheritdoc}
204
     */
205
    public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey)
206
    {
207
        $event = new AuthenticationHandlerEvent(
208
            $this->successHandler->onAuthenticationSuccess($request, $token),
209
            $request,
210
            null,
211
            $token,
212
            $providerKey
213
        );
214
        $this->dispatcher->dispatch(AuthenticationHandlerEvent::SUCCESS, $event);
215
216
        return $event->getResponse();
217
    }
218
219
    /**
220
     * {@inheritdoc}
@@ 222-232 (lines=11) @@
219
    /**
220
     * {@inheritdoc}
221
     */
222
    public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
223
    {
224
        $event = new AuthenticationHandlerEvent(
225
            $this->failureHandler->onAuthenticationFailure($request, $exception),
226
            $request,
227
            $exception
228
        );
229
        $this->dispatcher->dispatch(AuthenticationHandlerEvent::FAILURE, $event);
230
231
        return $event->getResponse();
232
    }
233
234
    /**
235
     * {@inheritdoc}
@@ 237-247 (lines=11) @@
234
    /**
235
     * {@inheritdoc}
236
     */
237
    public function start(Request $request, AuthenticationException $authException = null)
238
    {
239
        $event = new AuthenticationHandlerEvent(
240
            $this->entryPoint->start($request, $authException),
241
            $request,
242
            $authException
243
        );
244
        $this->dispatcher->dispatch(AuthenticationHandlerEvent::START, $event);
245
246
        return $event->getResponse();
247
    }
248
249
    /**
250
     * {@inheritdoc}