@@ -55,9 +55,9 @@ public function display($notes):void {
5555 $ repo = strtolower ($ LANG );
5656 // Link target to add a note to the current manual page,
5757 // and it's extended form with a [+] image
58- $ addnotelink = '/manual/add-note.php?sect= ' . $ filename .
59- '&repo= ' . $ repo .
60- '&redirect= ' . $ _SERVER ['BASE_HREF ' ];
58+ $ addnotelink = '/manual/add-note.php?sect= ' . $ filename .
59+ '&repo= ' . $ repo .
60+ '&redirect= ' . $ _SERVER ['BASE_HREF ' ];
6161 $ addnotesnippet = make_link (
6262 $ addnotelink ,
6363 "+<small> $ addNote</small> " ,
@@ -71,12 +71,12 @@ public function display($notes):void {
7171
7272 $ userContributedNotes = autogen ('user_contributed_notes ' , $ LANG );
7373 echo <<<END_USERNOTE_HEADER
74- <section id="usernotes">
75- <div class="head">
76- <span class="action"> {$ addnotesnippet }</span>
77- <h3 class="title"> $ userContributedNotes {$ noteCountHtml }</h3>
78- </div>
79- END_USERNOTE_HEADER ;
74+ <section id="usernotes">
75+ <div class="head">
76+ <span class="action"> {$ addnotesnippet }</span>
77+ <h3 class="title"> $ userContributedNotes {$ noteCountHtml }</h3>
78+ </div>
79+ END_USERNOTE_HEADER ;
8080
8181 // If we have no notes, then inform the user
8282 if ($ num_notes === 0 ) {
@@ -125,18 +125,18 @@ public function displaySingle(UserNote $note, $voteOption = true): void
125125 }
126126 $ rredir_filename = urlencode ($ redir_filename );
127127 $ votediv = <<<VOTEDIV
128- <div class="votes">
129- <div id="Vu {$ note ->id }">
130- <a href="/manual/vote-note.php?id= {$ note ->id }&page= {$ rredir_filename }&vote=up" title="Vote up!" class="usernotes-voteu">up</a>
131- </div>
132- <div id="Vd {$ note ->id }">
133- <a href="/manual/vote-note.php?id= {$ note ->id }&page= {$ rredir_filename }&vote=down" title="Vote down!" class="usernotes-voted">down</a>
134- </div>
135- <div class="tally" id="V {$ note ->id }" title=" {$ rate }">
136- {$ vote }
137- </div>
138- </div>
139- VOTEDIV ;
128+ <div class="votes">
129+ <div id="Vu {$ note ->id }">
130+ <a href="/manual/vote-note.php?id= {$ note ->id }&page= {$ rredir_filename }&vote=up" title="Vote up!" class="usernotes-voteu">up</a>
131+ </div>
132+ <div id="Vd {$ note ->id }">
133+ <a href="/manual/vote-note.php?id= {$ note ->id }&page= {$ rredir_filename }&vote=down" title="Vote down!" class="usernotes-voted">down</a>
134+ </div>
135+ <div class="tally" id="V {$ note ->id }" title=" {$ rate }">
136+ {$ vote }
137+ </div>
138+ </div>
139+ VOTEDIV ;
140140 } else {
141141 $ votediv = null ;
142142 }
@@ -173,12 +173,12 @@ public function displaySingle(UserNote $note, $voteOption = true): void
173173
174174 echo <<<USER_NOTE_TEXT
175175
176- <div class="note" id=" {$ note ->id }"> {$ votediv }{$ name }{$ admin }<div class="date" title=" $ fdatestr"><strong> {$ datestr }</strong></div>
177- <div class="text" id="Hcom {$ note ->id }">
178- {$ text }
179- </div>
180- </div>
181- USER_NOTE_TEXT ;
176+ <div class="note" id=" {$ note ->id }"> {$ votediv }{$ name }{$ admin }<div class="date" title=" $ fdatestr"><strong> {$ datestr }</strong></div>
177+ <div class="text" id="Hcom {$ note ->id }">
178+ {$ text }
179+ </div>
180+ </div>
181+ USER_NOTE_TEXT ;
182182 }
183183
184184 // 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
230230 ($ target ?: "_new " ),
231231 htmlspecialchars ($ url , ENT_QUOTES | ENT_IGNORE ),
232232 ($ target ?: "_new " ),
233- $ windowprops ,
233+ $ windowprops ,
234234 ($ linktext ?: $ url ),
235235 );
236236 }
0 commit comments