for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the TheAlternativeZurich/events project.
*
* (c) Florian Moser <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Controller;
use App\Controller\Base\BaseController;
use App\Entity\Event;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/**
* @Route("/event")
class EventController extends BaseController
{
* @Route("/{event}", name="event")
* @return Response
public function eventAction(Event $event)
$event
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function eventAction(/** @scrutinizer ignore-unused */ Event $event)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return $this->render('index.html.twig');
}
* @Route("/create", name="event_create")
public function newAction()
* @Route("/{event}/update", name="event_update")
public function editAction(Event $event)
public function editAction(/** @scrutinizer ignore-unused */ Event $event)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.