[web-php] master: Fix whitespace

From: Date: Tue, 13 Jan 2026 13:02:53 +0000
Subject: [web-php] master: Fix whitespace
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-33511@lists.php.net to get a copy of this message
Author: Kamil Tekiela (kamil-tekiela) Committer: Derick Rethans (derickr) Date: 2026-01-13T14:00:36+01:00 Commit: https://github.com/php/web-php/commit/85f795f5de673fba7505dee2094864aa52f78653 Raw diff: https://github.com/php/web-php/commit/85f795f5de673fba7505dee2094864aa52f78653.diff Fix whitespace Changed paths: M src/UserNotes/UserNoteService.php Diff: diff --git a/src/UserNotes/UserNoteService.php b/src/UserNotes/UserNoteService.php index 5e49ad9b55..ec9a9838bd 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 . - '&amp;repo=' . $repo . - '&amp;redirect=' . $_SERVER['BASE_HREF']; + $addnotelink = '/manual/add-note.php?sect=' . $filename . + '&amp;repo=' . $repo . + '&amp;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}&amp;page={$rredir_filename}&amp;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}&amp;page={$rredir_filename}&amp;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}&amp;page={$rredir_filename}&amp;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}&amp;page={$rredir_filename}&amp;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), ); }

« previous php.webmaster (#33511) next »