aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/templates
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-01-17 13:42:02 +0100
committerJoas Schilling <coding@schilljs.com>2018-01-18 10:55:44 +0100
commit19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38 (patch)
treec87781c3db915aa2bb3a7fe0ff20e4428f423bb3 /apps/updatenotification/templates
parent9296116297fb6c46f1f26d745b5fe1f63f6caa2a (diff)
downloadnextcloud-server-19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38.tar.gz
nextcloud-server-19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38.zip
Make Update notficiations strict and fix all inspections
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/templates')
-rw-r--r--apps/updatenotification/templates/admin.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/updatenotification/templates/admin.php b/apps/updatenotification/templates/admin.php
index e09d19848e7..19bbec769d0 100644
--- a/apps/updatenotification/templates/admin.php
+++ b/apps/updatenotification/templates/admin.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
script('updatenotification', 'admin');
style('updatenotification', 'admin');
@@ -40,7 +41,7 @@
<?php if (!$isDefaultUpdateServerURL) { ?>
<br />
<em>
- <?php p($l->t("A non-default update server is in use to be checked for updates:")); ?>
+ <?php p($l->t('A non-default update server is in use to be checked for updates:')); ?>
<code><?php p($updateServerURL); ?></code>
</em>
<?php } ?>
@@ -65,10 +66,10 @@
<p id="oca_updatenotification_groups">
<?php p($l->t('Notify members of the following groups about available updates:')); ?>
<input name="oca_updatenotification_groups_list" type="hidden" id="oca_updatenotification_groups_list" value="<?php p($_['notify_groups']) ?>" style="width: 400px"><br />
- <em class="<?php if (!in_array($currentChannel, ['daily', 'git'])) p('hidden'); ?>">
+ <em class="<?php if (!\in_array($currentChannel, ['daily', 'git'], true)) { p('hidden'); } ?>">
<?php p($l->t('Only notification for app updates are available.')); ?>
- <?php if ($currentChannel === 'daily') p($l->t('The selected update channel makes dedicated notifications for the server obsolete.')); ?>
- <?php if ($currentChannel === 'git') p($l->t('The selected update channel does not support updates of the server.')); ?>
+ <?php if ($currentChannel === 'daily') { p($l->t('The selected update channel makes dedicated notifications for the server obsolete.')); } ?>
+ <?php if ($currentChannel === 'git') { p($l->t('The selected update channel does not support updates of the server.')); } ?>
</em>
</p>
</form>