| Total Complexity | 9 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Coverage | 74.07% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class PermessiTwigExtension extends \Twig_Extension |
||
| 9 | { |
||
| 10 | |||
| 11 | protected $requeststack; |
||
| 12 | protected $container; |
||
| 13 | |||
| 14 | 32 | public function __construct(ContainerInterface $container, RequestStack $request_stack) |
|
| 18 | 32 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Get current controller name. |
||
| 22 | */ |
||
| 23 | 6 | public function getControllerName() |
|
| 30 | } |
||
| 31 | |||
| 32 | public function getFunctions() |
||
| 33 | { |
||
| 34 | return array( |
||
| 35 | //'permesso' => new \Twig_Function_Method($this, 'controllaPermesso'), |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getFilters() |
||
| 43 | ); |
||
| 44 | } |
||
| 45 | |||
| 46 | 6 | public function singoloPermesso($lettera) |
|
| 70 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.