Skip to content

Commit 7affeb9

Browse files
committed
Remove parentheses from "echo" calls
1 parent e0771c9 commit 7affeb9

4 files changed

Lines changed: 38 additions & 38 deletions

File tree

themes/ssp/consent/logout_completed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$this->data['jquery'] = ['core' => true];
55
$this->includeAtTemplateBase('includes/header.php');
66

7-
echo ('<h2>' . $this->data['header'] . '</h2>');
8-
echo ('<p>' . $this->t('{logout:logged_out_text}') . '</p>');
7+
echo '<h2>' . $this->data['header'] . '</h2>';
8+
echo '<p>' . $this->t('{logout:logged_out_text}') . '</p>';
99

1010
$this->includeAtTemplateBase('includes/footer.php');

themes/ssp/consent/noconsent.php

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,37 @@
44
$this->data['jquery'] = ['core' => true];
55

66
$this->includeAtTemplateBase('includes/header.php');
7+
?>
78

8-
echo '<h3>' . $this->data['header'] . '</h3>';
9-
echo '<p>' . $this->data['noconsent_text'] . '</p>';
9+
<h3><?= $this->data['header'] ?></h3>
10+
<p><?= $this->data['noconsent_text'] ?></p>
1011

11-
echo '<div class="ssp-btns-container">';
12-
if ($this->data['resumeFrom']) {
13-
echo (
14-
'<a href="' . htmlspecialchars($this->data['resumeFrom'])
15-
. '" class="ssp-btn btn ssp-btn__action ssp-btns-container--btn__left text-uppercase">'
16-
. $this->t('{consent:consent:noconsent_return}')
17-
. '</a>'
18-
);
19-
}
12+
<div class="ssp-btns-container">
13+
<?php if ($this->data['resumeFrom']) : ?>
14+
<a
15+
href="<?= htmlspecialchars($this->data['resumeFrom']) ?>"
16+
class="ssp-btn btn ssp-btn__action ssp-btns-container--btn__left text-uppercase"
17+
>
18+
<?= $this->t('{consent:consent:noconsent_return}') ?>
19+
</a>
20+
<?php endif;
2021

21-
if ($this->data['aboutService']) {
22-
echo ('<a href="' . htmlspecialchars($this->data['aboutService']) . '" class="ssp-btn btn text-uppercase">');
23-
echo ($this->t('{consent:consent:noconsent_goto_about}'));
24-
echo ('</a>');
25-
}
22+
if ($this->data['aboutService']) : ?>
23+
<a
24+
href="<?= htmlspecialchars($this->data['aboutService']) ?>"
25+
class="ssp-btn btn text-uppercase"
26+
>
27+
<?= $this->t('{consent:consent:noconsent_goto_about}') ?>
28+
</a>
29+
<?php endif; ?>
2630

27-
echo (
28-
'<a href="' . htmlspecialchars($this->data['logoutLink'])
29-
. '" class="ssp-btn btn ssp-btn__warning text-uppercase ssp-btns-container--btn__right">'
30-
. $this->data['noconsent_abort'] . '</a>'
31-
);
32-
echo '</div>'; //ssp-btns-container
31+
<a
32+
href="<?= htmlspecialchars($this->data['logoutLink']) ?>"
33+
class="ssp-btn btn ssp-btn__warning text-uppercase ssp-btns-container--btn__right"
34+
>
35+
<?= $this->data['noconsent_abort'] ?>
36+
</a>
37+
</div> <!-- ssp-btns-container -->
3338

39+
<?php
3440
$this->includeAtTemplateBase('includes/footer.php');

themes/ssp/default/includes/header.php

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
echo $this->t('{themevanilla:default:browser_tab_title}');
5858
}
5959
if (array_key_exists('header', $this->data)) {
60-
echo (' | ' . $this->data['header']);
60+
echo ' | ' . $this->data['header'];
6161
}
6262
?>
6363
</title>
@@ -83,22 +83,16 @@
8383

8484
if ($version == '1.8') {
8585
if (isset($jquery['core']) && $jquery['core']) {
86-
echo (
87-
'<script type="text/javascript" src="/' . $this->data['baseurlpath']
88-
. 'resources/jquery-1.8.js"></script>' . "\n"
89-
);
86+
echo '<script type="text/javascript" src="/' . $this->data['baseurlpath']
87+
. 'resources/jquery-1.8.js"></script>' . "\n";
9088
}
9189
if (isset($jquery['ui']) && $jquery['ui']) {
92-
echo (
93-
'<script type="text/javascript" src="/' . $this->data['baseurlpath']
94-
. 'resources/jquery-ui-1.8.js"></script>' . "\n"
95-
);
90+
echo '<script type="text/javascript" src="/' . $this->data['baseurlpath']
91+
. 'resources/jquery-ui-1.8.js"></script>' . "\n";
9692
}
9793
if (isset($jquery['css']) && $jquery['css']) {
98-
echo (
99-
'<link rel="stylesheet" media="screen" type="text/css" href="/' . $this->data['baseurlpath'] .
100-
'resources/uitheme1.8/jquery-ui.css" />' . "\n"
101-
);
94+
echo '<link rel="stylesheet" media="screen" type="text/css" href="/' . $this->data['baseurlpath'] .
95+
'resources/uitheme1.8/jquery-ui.css" />' . "\n";
10296
}
10397
}
10498
}

themes/ssp/discopower/disco.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class="form-control" aria-describedby="search institutions" placeholder="Search.
244244
$listItems .= (showEntry($this, $idpEntry));
245245
}
246246
}
247-
echo ($top . $search . $listOpen . $listItems . $close);
247+
echo $top . $search . $listOpen . $listItems . $close;
248248
} elseif ($tab == "idps_with_logos") {
249249
$idpsWithLogosIndex = array_search($tab, array_keys($this->data['idplist']));
250250
$top = '<div class="row ssp-content-group"><div class="col-sm-12">';

0 commit comments

Comments
 (0)