for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* @author Xavier Chopin <[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\Model\API\Klass;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
class UserController extends AbstractController implements AuthenticatedInterface
{
/**
* Shows events for a class and user given
* @Route("/classes/{id}", name="class-events")
* @param Request $request
* @param $id
* @return \Symfony\Component\HttpFoundation\Response
public function classEvents(Request $request, $id = '')
$request
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function classEvents(/** @scrutinizer ignore-unused */ Request $request, $id = '')
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$id
public function classEvents(Request $request, /** @scrutinizer ignore-unused */ $id = '')
//$events = Klass::events($id);
//var_dump($events);
return $this->render('User/class.twig', [
'givenName' => null,
'classes' => null,
'events' => null,
'event_activities' => null
]);
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.