Passed
Push — master ( e091d8...b3a459 )
by Jan
04:46
created

ToolsController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A reelCalculator() 0 5 1
1
<?php
2
3
4
namespace App\Controller;
5
6
7
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
8
use Symfony\Component\HttpFoundation\Response;
9
use Symfony\Component\Routing\Annotation\Route;
10
11
/**
12
 * @Route("/tools")
13
 * @package App\Controller
14
 */
15
class ToolsController extends AbstractController
16
{
17
18
    /**
19
     * @Route("/reel_calc", name="tools_reel_calculator")
20
     * @return Response
21
     */
22
    public function reelCalculator() : Response
23
    {
24
        $this->denyAccessUnlessGranted('@tools.reel_calculator');
25
26
        return $this->render("Tools/ReelCalculator/main.html.twig");
27
    }
28
}