Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 77729ea

Browse files
author
Dominik Frantisek Bucik
committed
fix: 🐛 Fix code style
1 parent 5771a1b commit 77729ea

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

lib/Auth/Process/DropUserAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use SimpleSAML\Module\perun\PerunConstants;
1111

1212
/**
13-
* Drop specified user attributes
13+
* Drop specified user attributes.
1414
*/
1515
class DropUserAttributes extends ProcessingFilter
1616
{

lib/Auth/Process/GenerateIdPAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use SimpleSAML\Module\perun\PerunConstants;
1414

1515
/**
16-
* Generated attributes based on IdP metadata
16+
* Generated attributes based on IdP metadata.
1717
*/
1818
class GenerateIdPAttributes extends ProcessingFilter
1919
{

lib/Auth/Process/QualifyNameID.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,17 @@ public function __construct($config, $reserved)
4848

4949
$this->nameQualifier = $this->filterConfig->getString(self::NAME_QUALIFIER, null);
5050
$this->nameQualifierAttribute = $this->filterConfig->getString(self::NAME_QUALIFIER_ATTRIBUTE, null);
51-
if (empty ($this->nameQualifier) && empty($this->nameQualifierAttribute)) {
51+
if (empty($this->nameQualifier) && empty($this->nameQualifierAttribute)) {
5252
throw new Exception(
53-
self::DEBUG_PREFIX . 'missing mandatory configuration for option \''
54-
. self::NAME_QUALIFIER . '\' or \'' . self::NAME_QUALIFIER_ATTRIBUTE . '\', one must be configured.'
53+
self::DEBUG_PREFIX . 'missing mandatory configuration for option \'' . self::NAME_QUALIFIER . '\' or \'' . self::NAME_QUALIFIER_ATTRIBUTE . '\', one must be configured.'
5554
);
5655
}
5756

5857
$this->spNameQualifier = $this->filterConfig->getString(self::SP_NAME_QUALIFIER, null);
5958
$this->spNameQualifierAttribute = $this->filterConfig->getString(self::SP_NAME_QUALIFIER_ATTRIBUTE, null);
6059
if (empty($this->spNameQualifier) && empty($this->spNameQualifierAttribute)) {
6160
throw new Exception(
62-
self::DEBUG_PREFIX . 'missing mandatory configuration for option \''
63-
. self::SP_NAME_QUALIFIER . '\' or \'' . self::SP_NAME_QUALIFIER_ATTRIBUTE . '\', one must be configured.'
61+
self::DEBUG_PREFIX . 'missing mandatory configuration for option \'' . self::SP_NAME_QUALIFIER . '\' or \'' . self::SP_NAME_QUALIFIER_ATTRIBUTE . '\', one must be configured.'
6462
);
6563
}
6664
}

lib/Auth/Process/SpAuthorization.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ public function handleUnsatisfiedMembership(
202202
$callback = Module::getModuleURL(self::CALLBACK, [
203203
self::PARAM_STATE_ID => $stateId,
204204
]);
205-
HTTP::redirectTrustedURL($registrationLink, [self::PARAM_CALLBACK => $callback]);
205+
HTTP::redirectTrustedURL($registrationLink, [
206+
self::PARAM_CALLBACK => $callback,
207+
]);
206208
exit;
207209
}
208210
try {

lib/PerunConstants.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace SimpleSAML\Module\perun;
46

57
class PerunConstants
@@ -37,5 +39,4 @@ class PerunConstants
3739
public const SP_ADMINISTRATION_CONTACT = 'administrationContact';
3840

3941
public const SP_NAME = 'name';
40-
41-
}
42+
}

0 commit comments

Comments
 (0)