| Conditions | 4 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | 3 | public function process(FrontendUser $user, array $context) |
|
| 12 | { |
||
| 13 | 3 | if (null !== $user->getUid()) { |
|
| 14 | 1 | return; |
|
| 15 | } |
||
| 16 | |||
| 17 | 2 | if ($context['idp']['default_groups_enable'] && $context['idp']['default_groups']) { |
|
| 18 | 1 | $user->setProperty('usergroup', $context['idp']['default_groups']); |
|
| 19 | } |
||
| 22 |