Author: Derick Rethans (derickr)
Date: 2026-01-21T15:01:47Z
Commit:
https://github.com/php/web-php/commit/47efb7c32387450c13206cc21f6a044a985d02d9
Raw diff:
https://github.com/php/web-php/commit/47efb7c32387450c13206cc21f6a044a985d02d9.diff
Revert "Fix whitespace"
This reverts commit 85f795f5de673fba7505dee2094864aa52f78653.
Changed paths:
M src/UserNotes/UserNoteService.php
Diff:
diff --git a/src/UserNotes/UserNoteService.php
b/src/UserNotes/UserNoteService.php
index ec9a9838bd..5e49ad9b55 100644
--- a/src/UserNotes/UserNoteService.php
+++ b/src/UserNotes/UserNoteService.php
@@ -55,9 +55,9 @@ public function display($notes):void {
$repo = strtolower($LANG);
// Link target to add a note to the current manual page,
// and it's extended form with a [+] image
- $addnotelink = '/manual/add-note.php?sect=' . $filename .
- '&repo=' . $repo .
- '&redirect=' . $_SERVER['BASE_HREF'];
+ $addnotelink = '/manual/add-note.php?sect=' . $filename .
+ '&repo=' . $repo .
+ '&redirect=' . $_SERVER['BASE_HREF'];
$addnotesnippet = make_link(
$addnotelink,
"+<small>$addNote</small>",
@@ -71,12 +71,12 @@ public function display($notes):void {
$userContributedNotes = autogen('user_contributed_notes', $LANG);
echo <<<END_USERNOTE_HEADER
- <section id="usernotes">
- <div class="head">
- <span class="action">{$addnotesnippet}</span>
- <h3 class="title">$userContributedNotes {$noteCountHtml}</h3>
- </div>
- END_USERNOTE_HEADER;
+<section id="usernotes">
+ <div class="head">
+ <span class="action">{$addnotesnippet}</span>
+ <h3 class="title">$userContributedNotes {$noteCountHtml}</h3>
+ </div>
+END_USERNOTE_HEADER;
// If we have no notes, then inform the user
if ($num_notes === 0) {
@@ -125,18 +125,18 @@ public function displaySingle(UserNote $note, $voteOption
= true): void
}
$rredir_filename = urlencode($redir_filename);
$votediv = <<<VOTEDIV
- <div class="votes">
- <div id="Vu{$note->id}">
- <a
href="/manual/vote-note.php?id={$note->id}&page={$rredir_filename}&vote=up"
title="Vote up!" class="usernotes-voteu">up</a>
- </div>
- <div id="Vd{$note->id}">
- <a
href="/manual/vote-note.php?id={$note->id}&page={$rredir_filename}&vote=down"
title="Vote down!" class="usernotes-voted">down</a>
- </div>
- <div class="tally" id="V{$note->id}" title="{$rate}">
- {$vote}
- </div>
- </div>
- VOTEDIV;
+ <div class="votes">
+ <div id="Vu{$note->id}">
+ <a
href="/manual/vote-note.php?id={$note->id}&page={$rredir_filename}&vote=up"
title="Vote up!" class="usernotes-voteu">up</a>
+ </div>
+ <div id="Vd{$note->id}">
+ <a
href="/manual/vote-note.php?id={$note->id}&page={$rredir_filename}&vote=down"
title="Vote down!" class="usernotes-voted">down</a>
+ </div>
+ <div class="tally" id="V{$note->id}" title="{$rate}">
+ {$vote}
+ </div>
+ </div>
+VOTEDIV;
} else {
$votediv = null;
}
@@ -173,12 +173,12 @@ public function displaySingle(UserNote $note, $voteOption
= true): void
echo <<<USER_NOTE_TEXT
- <div class="note" id="{$note->id}">{$votediv}{$name}{$admin}<div
class="date" title="$fdatestr"><strong>{$datestr}</strong></div>
- <div class="text" id="Hcom{$note->id}">
- {$text}
- </div>
- </div>
- USER_NOTE_TEXT;
+ <div class="note" id="{$note->id}">{$votediv}{$name}{$admin}<div
class="date" title="$fdatestr"><strong>{$datestr}</strong></div>
+ <div class="text" id="Hcom{$note->id}">
+{$text}
+ </div>
+ </div>
+USER_NOTE_TEXT;
}
// Clean out the content of one user note for printing to HTML
@@ -230,7 +230,7 @@ private function makePopupLink(string $url, string
$linktext = '', string $targe
($target ?: "_new"),
htmlspecialchars($url, ENT_QUOTES | ENT_IGNORE),
($target ?: "_new"),
- $windowprops,
+ $windowprops,
($linktext ?: $url),
);
}