for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the KleijnWeb\JwtBundle package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KleijnWeb\JwtBundle\Tests\Functional\App\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* @author John Kleijn <[email protected]>
class TestController
{
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @param Request $request
* @return Response
public function secureAction(Request $request)
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new Response('SECURED CONTENT');
}
public function securedWithSecretLoaderAction(Request $request)
return new Response('CONTENT SECURED WITH SECRET LOADER');
public function unsecureAction(Request $request)
return new Response('UNSECURED CONTENT');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.