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

Commit 9879124

Browse files
Merge pull request #190 from vyskocilpavel/fix_ecs
Fix ecs
2 parents 197e6e5 + d34d401 commit 9879124

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+15
-262
lines changed

composer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@
2020
{
2121
"name": "Pavel Brousek",
2222
"email": "[email protected]"
23+
},
24+
{
25+
"name": "Dominik Frantisek Bucik",
26+
"email": "[email protected]"
27+
},
28+
{
29+
"name": "Dominik Baranek",
30+
"email": "[email protected]"
31+
},
32+
{
33+
"name": "Dominik Baranek",
34+
"email": "[email protected]"
2335
}
2436
],
2537
"require": {

config-templates/module_perun_idpListsServiceDB.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
/**
66
* This is example configuration for connection to database with whitelist/greylist Copy this file to default config
77
* directory and edit the properties.
8-
*
9-
* @author Pavel Vyskočil <[email protected]>
108
*/
119
$config = [
1210
/*

ecs.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
__DIR__ . '/composer.json',
2828
]);
2929

30-
$containerConfigurator->import(SetList::CLEAN_CODE);
31-
$containerConfigurator->import(SetList::SYMPLIFY);
3230
$containerConfigurator->import(SetList::ARRAY);
31+
$containerConfigurator->import(SetList::CLEAN_CODE);
3332
$containerConfigurator->import(SetList::COMMON);
3433
$containerConfigurator->import(SetList::COMMENTS);
3534
$containerConfigurator->import(SetList::CONTROL_STRUCTURES);
3635
$containerConfigurator->import(SetList::DOCBLOCK);
3736
$containerConfigurator->import(SetList::NAMESPACES);
3837
$containerConfigurator->import(SetList::PHPUNIT);
39-
$containerConfigurator->import(SetList::SPACES);
4038
$containerConfigurator->import(SetList::PSR_12);
39+
$containerConfigurator->import(SetList::SPACES);
40+
$containerConfigurator->import(SetList::SYMPLIFY);
4141
};

lib/Adapter.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function getConnector()
3333
/**
3434
* @param string $interface code of interface. Check constants of this class.
3535
* @return Adapter instance of this class. note it is NOT singleton.
36-
* @throws Exception thrown if interface does not match any supported interface
3736
*/
3837
public static function getInstance($interface)
3938
{
@@ -56,21 +55,18 @@ abstract public function getPerunUser($idpEntityId, $uids);
5655
* @param model\Vo $vo
5756
* @param string $name group name. Note that name of group is without VO name prefix.
5857
* @return Group
59-
* @throws Exception if does not exists
6058
*/
6159
abstract public function getGroupByName($vo, $name);
6260

6361
/**
6462
* @param string $voShortName
6563
* @return Vo
66-
* @throws Exception
6764
*/
6865
abstract public function getVoByShortName($voShortName);
6966

7067
/**
7168
* @param integer $id
7269
* @return Vo
73-
* @throws Exception if does not exists
7470
*/
7571
abstract public function getVoById($id);
7672

lib/AdapterLdap.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
* folder.
2222
*
2323
* Perun adapter which uses Perun LDAP interface
24-
*
25-
* @author Ondrej Velisek <[email protected]>
26-
* @author Michal Prochazka <[email protected]>
27-
* @author Pavel Vyskocil <[email protected]>
2824
*/
2925
class AdapterLdap extends Adapter
3026
{

lib/AdapterRpc.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
* Class sspmod_perun_AdapterRpc
2020
*
2121
* Perun adapter which uses Perun RPC interface
22-
*
23-
* @author Michal Prochazka <[email protected]>
24-
* @author Pavel Vyskocil <[email protected]>
2522
*/
2623
class AdapterRpc extends Adapter
2724
{

lib/AttributeTransformer.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,6 @@
22

33
declare(strict_types=1);
44

5-
/**
6-
* @author Pavel Brousek <[email protected]>
7-
* ───────────▄▄▄▄▄▄▄▄▄───────────
8-
* ────────▄█████████████▄────────
9-
* █████──█████████████████──█████
10-
* ▐████▌─▀███▄───────▄███▀─▐████▌
11-
* ─█████▄──▀███▄───▄███▀──▄█████─
12-
* ─▐██▀███▄──▀███▄███▀──▄███▀██▌─
13-
* ──███▄▀███▄──▀███▀──▄███▀▄███──
14-
* ──▐█▄▀█▄▀███─▄─▀─▄─███▀▄█▀▄█▌──
15-
* ───███▄▀█▄██─██▄██─██▄█▀▄███───
16-
* ────▀███▄▀██─█████─██▀▄███▀────
17-
* ───█▄─▀█████─█████─█████▀─▄█───
18-
* ───███────────███────────███───
19-
* ───███▄────▄█─███─█▄────▄███───
20-
* ───█████─▄███─███─███▄─█████───
21-
* ───█████─████─███─████─█████───
22-
* ───█████─████─███─████─█████───
23-
* ───█████─████─███─████─█████───
24-
* ───█████─████▄▄▄▄▄████─█████───
25-
* ────▀███─█████████████─███▀────
26-
* ──────▀█─███─▄▄▄▄▄─███─█▀──────
27-
* ─────────▀█▌▐█████▌▐█▀─────────
28-
* ────────────███████────────────
29-
*/
30-
315
namespace SimpleSAML\Module\perun;
326

337
abstract class AttributeTransformer

lib/Auth/Process/IdPAttribute.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
* Class IdPAttribute
1212
*
1313
* This class for each line in $attrMAp search the $key in IdP Metadata and save it to $request['Attributes'][$value]
14-
*
15-
* @author Pavel Vyskocil <[email protected]>
1614
*/
1715
class IdPAttribute extends \SimpleSAML\Auth\ProcessingFilter
1816
{

lib/Auth/Process/PerunAttributes.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
* It strongly relays on PerunIdentity filter to obtain perun user id. Configure it before this filter properly.
2020
*
2121
* if attribute in Perun value is null or is not set at all SSP attribute is set to empty array.
22-
*
23-
* @author Ondrej Velisek <[email protected]>
2422
*/
2523
class PerunAttributes extends ProcessingFilter
2624
{
@@ -126,7 +124,6 @@ private function hasStringKeys($array): bool
126124
*
127125
* @param $user
128126
* @param array $attributes List of attributes which will be loaded from Perun system
129-
* @throws Exception
130127
*/
131128
private function processAttributes(User $user, array $attributes): array
132129
{

lib/Auth/Process/PerunEntitlement.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
*
1717
* This filter joins eduPersonEntitlement, forwardedEduPersonEntitlement, resource capabilities and facility
1818
* capabilities
19-
*
20-
* @author Dominik Baránek <[email protected]>
21-
* @author Pavel Vyskočil <[email protected]>
2219
*/
2320
class PerunEntitlement extends ProcessingFilter
2421
{

0 commit comments

Comments
 (0)