for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SimpleSAML\Module\casserver\Controller;
use SimpleSAML\Configuration;
use SimpleSAML\XHTML\Template;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Attribute\AsController;
#[AsController]
class LoggedInController
{
/** @var \SimpleSAML\Configuration */
protected Configuration $config;
/**
* Controller constructor.
*
* It initializes the global configuration for the controllers implemented here and injects the session service.
* @param Configuration|null $config
* @throws \Exception
*/
public function __construct(Configuration $config = null)
$this->config = $config ?? Configuration::getInstance();
}
* Show Log out view.
* @param Request $request
* @return Response
public function main(Request $request): Response
$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 main(/** @scrutinizer ignore-unused */ Request $request): Response
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
session_cache_limiter('nocache');
return new Template($this->config, 'casserver:loggedIn.twig');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.