Conditions | 2 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function connect(Application $app) |
||
17 | { |
||
18 | $controllers = $app['controllers_factory']; |
||
19 | |||
20 | $controllers->post('/access-token', function (Request $request) use ($app) { |
||
21 | try { |
||
22 | $token = $app['sandstone.oauth.controller']->postAccessToken($request); |
||
23 | |||
24 | return new JsonResponse($token); |
||
25 | } catch (OAuthException $e) { |
||
|
|||
26 | throw new HttpException($e->httpStatusCode, $e->errorType.': '.$e->getMessage(), $e); |
||
27 | } |
||
28 | }); |
||
29 | |||
30 | return $controllers; |
||
31 | } |
||
32 | } |
||
33 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.