| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class HomeController extends Controller |
||
| 12 | { |
||
| 13 | public function indexAction(Request $request) |
||
|
|
|||
| 14 | { |
||
| 15 | $latestVideos = $this->getDoctrine() |
||
| 16 | ->getRepository(Video::class) |
||
| 17 | ->findLatest(getenv('APP_NUMBER_VIDEO_HOMEPAGE')); |
||
| 18 | // replace this example code with whatever you need |
||
| 19 | return $this->render('home/index.html.twig', [ |
||
| 20 | 'latestVideos' => $latestVideos, |
||
| 21 | ]); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function versionAction(Request $request) |
||
| 37 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.