Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
21 | 5 | public function indexAction(Request $request, FeedBuilder $feedBuilder, FeedProviderInterface $provider) : Response |
|
22 | { |
||
23 | try { |
||
24 | 5 | return $feedBuilder->getResponse( |
|
25 | 5 | $request->get('format', 'rss'), |
|
26 | 5 | $provider->getFeed($request) |
|
27 | ); |
||
28 | 1 | } catch (FeedNotFoundException $e) { |
|
29 | 1 | throw new NotFoundHttpException('feed not found'); |
|
30 | } |
||
31 | } |
||
32 | |||
34 |