for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Controller;
use AppBundle\Service\NodeService;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class NodeController extends Controller
{
/**
* @Route("/id/{id}", name="node.view")
*/
public function viewAction(Request $request, $id)
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$node = $this->getNodeService()->viewNode($id);
return $this->render('node/view.html.twig', [
'node' => $node,
]);
}
public function editAction(Request $request, $id)
* @return NodeService
private function getNodeService()
return $this->get('app.node');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.