Home
last modified time | relevance | path

Searched refs:note (Results 1 – 17 of 17) sorted by relevance

/web-php/src/UserNotes/
H A DSorter.php52 return ($note->upvotes - $note->downvotes - $this->minVote) * $this->voteFactor + .3;
56 return $note->upvotes + $note->downvotes <= 2 ? 0.5 : $this->calcRating($note);
59 private function calcRating(UserNote $note):float { argument
60 $totalVotes = $note->upvotes + $note->downvotes;
69 foreach ($notes as $note) {
70 $prio[$note->id] = ($this->calcVotePriority($note) * $this->voteWeight)
90 foreach ($notes as $note) {
91 $this->maxVote = max($this->maxVote, ($note->upvotes - $note->downvotes));
92 $this->minVote = min($this->minVote, ($note->upvotes - $note->downvotes));
93 $this->maxAge = max($this->maxAge, $note->ts);
[all …]
/web-php/tests/Unit/UserNotes/
H A DSorterTest.php36 $normalized = array_map(static function (UserNote $note): array {
37 return self::normalize($note);
65 $normalized = array_map(static function (UserNote $note): array {
66 return self::normalize($note);
114 $normalized = array_map(static function (UserNote $note): array {
115 return self::normalize($note);
400 private static function normalize(UserNote $note): array argument
403 'downvotes' => $note->downvotes,
404 'id' => $note->id,
405 'ts' => $note->ts,
[all …]
/web-php/manual/
H A Dadd-note.php4 $_SERVER['BASE_PAGE'] = 'manual/add-note.php';
12 site_header("Add Manual Note", ['css' => 'add-note.css']);
37 $note = trim($_POST['note']); variable
41 $note = str_replace(["\r\n", "\r"], "\n", $note); variable
42 $note = preg_replace("/\n{2,}/", "\n\n", $note); variable
53 if (strlen($note) == 0) {
68 elseif (strlen($note) >= 4096) {
73 elseif (strlen($note) < 32) {
81 foreach (preg_split("/\\s+/", $note) as $chunk) {
100 'note' => $note,
[all …]
/web-php/include/
H A Dshared-manual.inc22 // User note display functions
53 "+<small>add a note</small>",
76 foreach ($notes as $note) {
114 // Print out one user note entry
117 if ($note->user) {
122 …$name = ($note->id ? "\n <a href=\"#{$note->id}\" class=\"name\">$name</a><a class=\"genanchor\" …
131 $vote = $note->upvotes - $note->downvotes;
132 $p = floor(($note->upvotes / (($note->upvotes + $note->downvotes) ?: 1)) * 100);
133 $rate = !$p && !($note->upvotes + $note->downvotes) ? "no votes..." : "$p% like this...";
144 <div id="Vu{$note->id}">
[all …]
H A Dversion.inc11 * "note" => "this file was updated 29feb due to broken phar files..",
H A Dreleases.inc14082 'note' => '',
14090 'note' => '',
14105 'note' => '',
14182 'note' => '',
14190 'note' => '',
14205 'note' => '',
14256 'note' => '',
14264 'note' => '',
14279 'note' => '',
14356 'note' => '',
[all …]
H A Dbranches.inc167 /* If you provide an array to $always_include, note that the version numbers
H A Dlayout.inc198 // Clean out the content of one user note for printing to HTML
H A Derrors.inc621 <p>Please note that legacy manuals are maintained by Zend and not the PHP Documentation Group. Any …
H A Dpregen-news.inc3628 … <p>Please note that according to the <a href="http://php.net/supported-versions.php">PHP version
3958 …<p>Please note that according to the <a href="http://php.net/supported-versions.php">PHP version s…
4119 … <p>Please note that according to the <a href="http://php.net/supported-versions.php">PHP version
20322 …<p>Please note that according to the <a href="http://php.net/supported-versions.php">PHP version s…
20884 …<p>Please note that PHP 5.4 branch is nearing the end of its <a href="http://php.net/supported-ver…
21345 …<p>Please note that PHP 5.4 branch is nearing the end of its <a href="http://php.net/supported-ver…
/web-php/styles/
H A Dadd-note.css1 #add-note-usernotes {
6 #add-note-usernotes .shadow {
24 #add-note-usernotes .note_description,
25 #add-note-usernotes .note_example {
30 #add-note-usernotes .note_description {
33 #add-note-usernotes .note_example {
H A Dtheme-medium.css138 blockquote.note {
146 .refsect1 blockquote.note {
162 blockquote.note,
258 #usernotes .note .name {
261 #usernotes .note .date {
264 #usernotes .note .name:hover + .genanchor {
267 #usernotes .note .text {
270 #usernotes .note .votes .tally {
273 #usernotes .note .votes a {
310 #usernotes .note .text,
H A Dtheme-base.css452 /* Add a note buttons. */
468 #usernotes .note {
473 #usernotes .note .votes {
477 #usernotes .note .name {
483 #usernotes .note .name em {
488 #usernotes .note .date {
497 #usernotes .note .admin {
506 #usernotes .note .text {
1252 blockquote.note {
1258 blockquote.note strong.note {
[all …]
H A Dprint.css20 #usernotes .note, #usernotes {
/web-php/
H A Drobots.txt8 Disallow: /manual/add-note.php
9 Disallow: /manual/vote-note.php
/web-php/fonts/Font-Awesome/
H A DREADME.txt5 Please, note, that you should obey original font licenses, used to make this
/web-php/.github/
H A DCONTRIBUTING.md30 sent to the pull request mailing list. Sending a note to [PHP php.net internal infrastructure discu…

Completed in 241 milliseconds