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

Commit 41db903

Browse files
committed
style: ECS v11.1
1 parent e4ec3d3 commit 41db903

16 files changed

+207
-206
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"cesnet/simplesamlphp-module-authswitcher": "^10.6"
6363
},
6464
"require-dev": {
65-
"symplify/easy-coding-standard": "^11.0"
65+
"symplify/easy-coding-standard": "^11.1"
6666
},
6767
"suggest": {
6868
"cesnet/simplesamlphp-module-privacyidea": "included privacyIDEA template is for this module"

composer.lock

Lines changed: 109 additions & 109 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Auth/Process/PerunEntitlement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected function mapGroupName($request, $groupName)
147147
{
148148
if (
149149
isset($request['SPMetadata']['groupMapping'], $request['SPMetadata']['groupMapping'][$groupName])
150-
) {
150+
) {
151151
Logger::debug(
152152
'Mapping ' . $groupName . ' to ' . $request['SPMetadata']['groupMapping'][$groupName] .
153153
' for SP ' . $this->entityId

templates/403-is-eligible-tpl.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
use SimpleSAML\Configuration;
46
use SimpleSAML\Module;
@@ -29,20 +31,19 @@
2931
<div class="row">
3032
<div>
3133
<p><?php echo $this->t($textKey); ?></p>
32-
<?php if (!empty($restartUrl)): ?>
34+
<?php if (!empty($restartUrl)): ?>
3335
<p>
3436
<a class="btn btn-lg btn-block btn-primary" href="<?php echo $restartUrl ?>">
3537
<?php echo $this->t($buttonKey); ?>
3638
</a>
3739
</p>
38-
<?php endif ?>
39-
<p><?php echo $this->t(
40-
$contactKey
41-
); ?> <a href="mailto:<?php echo $supportAddress; ?>"><?php echo $supportAddress; ?></a></p>
40+
<?php endif ?>
41+
<p><?php echo $this->t($contactKey); ?>
42+
<a href="mailto:<?php echo $supportAddress; ?>"><?php echo $supportAddress; ?></a>
43+
</p>
4244
</div>
4345
</div>
4446

4547

4648
<?php
47-
4849
$this->includeAtTemplateBase('includes/footer.php');

templates/choose-vo-and-group-tpl.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@
8484
foreach ($vos as $key => $vo) {
8585
echo '<option value="' . $key . '" >' . $vo->getName() . '</option>';
8686
}
87-
?>
87+
?>
8888
</select>
8989

9090
<h4 class="selectGroup"
9191
style="display: none"><?php echo $this->t('{perun:perun:choose-vo-and-group-tpl_select-group}'); ?></h4>
9292
<select class="selectGroup form-control" name="selectedGroup" class="form-control" style="display: none"
9393
required>
9494
<?php
95-
foreach ($groups as $group) {
96-
echo '<option class="groupOption" value="' . $group->getUniqueName() . '" >' .
97-
$group->getDescription() . '</option>';
98-
}
99-
?>
95+
foreach ($groups as $group) {
96+
echo '<option class="groupOption" value="' . $group->getUniqueName() . '" >' .
97+
$group->getDescription() . '</option>';
98+
}
99+
?>
100100
</select>
101101

102102
<input type="submit" value="<?php echo $this->t('{perun:perun:choose-vo-and-group-tpl_continue}'); ?>"

templates/force-aup-tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
$aup->link . '">' . $this->t('{perun:perun:here}') . '</a></p>';
3030
echo '</div>';
3131
}
32-
?>
32+
?>
3333

3434
<input type="hidden" name="StateId" value="<?php echo $_REQUEST['StateId']; ?>">
3535

templates/listOfSps-tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
echo '<th>' . $displayName . '</th>';
123123
}
124124
}
125-
?>
125+
?>
126126
</tr>
127127
</thead>
128128
<tbody>
@@ -158,7 +158,7 @@
158158
}
159159
}
160160
echo '</tr>';
161-
?>
161+
?>
162162
</tbody>
163163
</table>
164164
</div>

templates/sp-authorization-403-tpl.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
<p>
2222
<?php
2323
echo $this->t('{perun:perun:sp_authorize_403_text}') . '<b>' . $serviceName . '</b>.';
24-
if (!empty($informationUrl)) {
25-
echo ' (' . $this->t('{perun:perun:sp_authorize_403_information_page}') .
26-
'<a target="_blank" href="' . $informationUrl . '">'
27-
. $this->t('{perun:perun:sp_authorize_403_information_page_link_text}') . '</a>.)';
28-
} ?>
24+
if (!empty($informationUrl)) {
25+
echo ' (' . $this->t('{perun:perun:sp_authorize_403_information_page}') .
26+
'<a target="_blank" href="' . $informationUrl . '">'
27+
. $this->t('{perun:perun:sp_authorize_403_information_page_link_text}') . '</a>.)';
28+
} ?>
2929
</p>
3030
<p>
3131
<?php echo $this->t('{perun:perun:sp_authorize_403_contact_support}'); ?>

templates/sp-authorization-notify-tpl.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
<p>
1919
<?php
2020
echo $this->t('{perun:perun:sp_authorize_notify_text}') . '<b>' . $serviceName . '</b>.';
21-
if (!empty($informationUrl)) {
22-
echo ' (' . $this->t('{perun:perun:sp_authorize_notify_information_page}') .
23-
'<a target="_blank" href="' . $informationUrl . '">'
24-
. $this->t('{perun:perun:sp_authorize_notify_information_page_link_text}') . '</a>). ';
25-
}
26-
echo $this->t('{perun:perun:sp_authorize_notify_text2}');
27-
?>
21+
if (!empty($informationUrl)) {
22+
echo ' (' . $this->t('{perun:perun:sp_authorize_notify_information_page}') .
23+
'<a target="_blank" href="' . $informationUrl . '">'
24+
. $this->t('{perun:perun:sp_authorize_notify_information_page_link_text}') . '</a>). ';
25+
}
26+
echo $this->t('{perun:perun:sp_authorize_notify_text2}');
27+
?>
2828
</p>
2929
<div>
3030
<a href="<?php echo htmlspecialchars($redirectUrl); ?>" class="btn btn-lg btn-primary btn-block">

templates/sp-authorization-select-tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
. $group->getDescription()
6363
. '</option>';
6464
}
65-
?>
65+
?>
6666
</select>
6767
<input type="submit" value="<?php echo $this->t('{perun:perun:choose-vo-and-group-tpl_continue}'); ?>"
6868
class="btn btn-lg btn-primary btn-block mt-4">

0 commit comments

Comments
 (0)