Issues (5)

src/Logout.php (2 issues)

Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\Module\consent;
6
7
use SimpleSAML\IdP;
8
use SimpleSAML\Module;
9
use SimpleSAML\Utils;
10
11
/**
12
 * Class defining the logout completed handler for the consent page.
13
 *
14
 * @package SimpleSAMLphp
15
 */
16
17
class Logout
18
{
19
    /**
20
     * @param \SimpleSAML\IdP $idp
21
     * @param array $state
22
     */
23
    public static function postLogout(IdP $idp, array $state): void
0 ignored issues
show
The parameter $idp is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

23
    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.

Loading history...
The parameter $state is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

23
    public static function postLogout(IdP $idp, /** @scrutinizer ignore-unused */ 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.

Loading history...
24
    {
25
        $url = Module::getModuleURL('consent/logoutcompleted');
26
27
        $httpUtils = new Utils\HTTP();
28
        $httpUtils->redirectTrustedURL($url);
29
    }
30
}
31