Skip to content

Commit

Permalink
Merge pull request #281 from samuelet/bot/autofix
Browse files Browse the repository at this point in the history
🤖 Automatic code style fixes
  • Loading branch information
Klap-in authored Jan 4, 2024
2 parents 16565ad + 206dadf commit ddf71e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function makeNodes(&$data, $indexLatestParsedItem, $previousLevel, &$nod

//set current page to active
if ($opts['currentPage'] == $item['id']) {
if(!$hasActiveNode) {
if (!$hasActiveNode) {
$node['active'] = true;
$hasActiveNode = true;
}
Expand Down Expand Up @@ -172,7 +172,7 @@ private function makeNodes(&$data, $indexLatestParsedItem, $previousLevel, &$nod
) {
//with hide_headpage enabled, the parent node must be actived
//special: nopg has no pages, therefore, mark its parent node active
if(!$hasActiveNode) {
if (!$hasActiveNode) {
$node['active'] = true;
$hasActiveNode = true;
}
Expand Down Expand Up @@ -706,7 +706,7 @@ public static function getNamespaceTitle($ns, $headpage, &$hns)
break;
//inside pages
default:
if(!blank($hp)) { //empty setting results in empty string here
if (!blank($hp)) { //empty setting results in empty string here
$page = $ns . ":" . $hp;
}
}
Expand Down

0 comments on commit ddf71e1

Please sign in to comment.