Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
33 | 5 | public function indexAction(Request $request, FeedProviderInterface $provider) : Response |
|
34 | { |
||
35 | try { |
||
36 | 5 | return $this->feedBuilder->getResponse( |
|
37 | 5 | $request->get('format', 'rss'), |
|
38 | 5 | $provider->getFeed($request) |
|
39 | ); |
||
40 | 1 | } catch (FeedNotFoundException $e) { |
|
41 | 1 | throw new NotFoundHttpException('feed not found'); |
|
42 | } |
||
43 | } |
||
44 | |||
46 |