Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public function start(Request $request, AuthenticationException $authException = null) |
||
44 | { |
||
45 | $psr7Response = $this->oauth2ResponseFactoryManager->getResponse( |
||
46 | new OAuth2Message( |
||
47 | 401, |
||
48 | OAuth2Message::ERROR_ACCESS_DENIED, |
||
49 | 'OAuth2 authentication required' |
||
50 | ) |
||
51 | ); |
||
52 | $factory = new HttpFoundationFactory(); |
||
53 | |||
54 | return $factory->createResponse($psr7Response); |
||
55 | } |
||
56 | } |
||
57 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.