for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SimpleSAML\Module\consent;
use SimpleSAML\IdP;
use SimpleSAML\Module;
use SimpleSAML\Utils;
/**
* Class defining the logout completed handler for the consent page.
*
* @package SimpleSAMLphp
*/
class Logout
{
* @param \SimpleSAML\IdP $idp
* @param array $state
public static function postLogout(IdP $idp, array $state): void
$idp
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function postLogout(/** @scrutinizer ignore-unused */ IdP $idp, array $state): void
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$state
public static function postLogout(IdP $idp, /** @scrutinizer ignore-unused */ array $state): void
$url = Module::getModuleURL('consent/logoutcompleted');
$httpUtils = new Utils\HTTP();
$httpUtils->redirectTrustedURL($url);
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.