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
$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
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||
24 | { |
||||
25 | $url = Module::getModuleURL('consent/logoutcompleted'); |
||||
26 | |||||
27 | $httpUtils = new Utils\HTTP(); |
||||
28 | $httpUtils->redirectTrustedURL($url); |
||||
29 | } |
||||
30 | } |
||||
31 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.