Skip to content

Commit cb26c7d

Browse files
committed
Fix codesniffer issues
1 parent db62196 commit cb26c7d

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/Controller/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class LoginController
4040

4141

4242
/** @var string[] */
43-
private const DEBUG_MODES = ['true', 'samlValidate'];
43+
private const array DEBUG_MODES = ['true', 'samlValidate'];
4444

4545

4646
/** @var \SimpleSAML\Logger */

src/Controller/LogoutController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class LogoutController
4444

4545
/** @var \SimpleSAML\Module\casserver\Cas\Ticket\TicketStore */
4646
protected TicketStore $ticketStore;
47+
4748
private ServiceValidator $serviceValidator;
4849

4950

src/Shib13/AuthnResponse.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@
2828
*/
2929
class AuthnResponse
3030
{
31-
/** @var string */
32-
public const SHIB_PROTOCOL_NS = 'urn:oasis:names:tc:SAML:1.0:protocol';
31+
public const string SHIB_PROTOCOL_NS = 'urn:oasis:names:tc:SAML:1.0:protocol';
3332

34-
/** @var string */
35-
public const SHIB_ASSERT_NS = 'urn:oasis:names:tc:SAML:1.0:assertion';
33+
public const string SHIB_ASSERT_NS = 'urn:oasis:names:tc:SAML:1.0:assertion';
3634

3735

3836
/**

tests/src/Controller/LogoutControllerTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use RuntimeException;
1111
use SimpleSAML\Auth\Simple;
1212
use SimpleSAML\Configuration;
13+
use SimpleSAML\HTTP\RunnableResponse;
1314
use SimpleSAML\Module;
1415
use SimpleSAML\Module\casserver\Controller\LogoutController;
1516
use SimpleSAML\Session;
@@ -281,9 +282,11 @@ public function testTicketIdGetsDeletedOnLogout(): void
281282

282283
/**
283284
* Validates common things in the logout response
284-
* @param Response $response The response from logout
285+
*
286+
* @param \Symfony\Component\HttpFoundation\Response $response The response from logout
285287
* @param string|null $redirectUrl The intended redirect url
286288
* @param bool $isShowPage If a logout page should be shown with a link to the url
289+
*
287290
* @return void
288291
*/
289292
public function validateLogoutResponse(

0 commit comments

Comments
 (0)