Passed
Push — master ( 298b34...5e9b69 )
by Anthony
02:17
created

PageController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
dl 0
loc 8
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A renderPageAction() 0 3 1
1
<?php
2
3
namespace Ribs\RibsAdminBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
7
use Symfony\Component\HttpFoundation\Response;
8
9
class PageController extends Controller
10
{
11
	/**
12
	 * @Route("/page/{url}", name="ribsadmin_navigation", requirements={"url" = "[a-zA-Z0-9\-\_\/]*"})
13
	 */
14
	public function renderPageAction(string $url): Response
0 ignored issues
show
Unused Code introduced by
The parameter $url is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

14
	public function renderPageAction(/** @scrutinizer ignore-unused */ string $url): Response

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
15
	{
16
		return new Response();
17
	}
18
}
19