Skip to content

Commit 19da0db

Browse files
authored
Merge pull request dokuwiki#4370 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
2 parents 8b9fc10 + 8407f25 commit 19da0db

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

inc/Search/Indexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ public function histogram($min = 1, $max = 0, $minlen = 3, $key = null)
906906
if ($freq >= $min && (!$max || $freq <= $max))
907907
$val_idx[$wid] = $freq;
908908
}
909-
if (!empty($val_idx)) {
909+
if ($val_idx !== []) {
910910
$words = $this->getIndex($metaname . '_w', '');
911911
foreach ($val_idx as $wid => $freq) {
912912
if (strlen($words[$wid]) >= $minlen)

inc/auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function auth_setup()
103103
if (!auth_tokenlogin()) {
104104
$ok = null;
105105

106-
if ($auth instanceof AuthPlugin && $auth->canDo('external')) {
106+
if ($auth->canDo('external')) {
107107
$ok = $auth->trustExternal($INPUT->str('u'), $INPUT->str('p'), $INPUT->bool('r'));
108108
}
109109

inc/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ function userlink($username = null, $textonly = false)
17301730
if (is_null($xhtml_renderer)) {
17311731
$xhtml_renderer = p_get_renderer('xhtml');
17321732
}
1733-
if (empty($xhtml_renderer->interwiki)) {
1733+
if ($xhtml_renderer->interwiki === []) {
17341734
$xhtml_renderer->interwiki = getInterwiki();
17351735
}
17361736
$shortcut = 'user';

0 commit comments

Comments
 (0)