Searched refs:note (Results 1 – 18 of 18) sorted by relevance
/web-php/src/UserNotes/ |
H A D | Sorter.php | 52 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 D | SorterTest.php | 36 $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 D | add-note.php | 4 $_SERVER['BASE_PAGE'] = 'manual/add-note.php'; 12 site_header("Add Manual Note", ['css' => 'add-note.css']); 41 $note = trim($_POST['note']); variable 45 $note = str_replace(["\r\n", "\r"], "\n", $note); variable 46 $note = preg_replace("/\n{2,}/", "\n\n", $note); variable 57 if (strlen($note) == 0) { 72 elseif (strlen($note) >= 4096) { 77 elseif (strlen($note) < 32) { 85 foreach (preg_split("/\\s+/", $note) as $chunk) { 104 'note' => $note, [all …]
|
/web-php/include/ |
H A D | shared-manual.inc | 22 // User note display functions 82 foreach ($notes as $note) { 120 // Print out one user note entry 123 if ($note->user) { 128 …$name = ($note->id ? "\n <a href=\"#{$note->id}\" class=\"name\">$name</a><a class=\"genanchor\" … 137 $vote = $note->upvotes - $note->downvotes; 138 $p = floor(($note->upvotes / (($note->upvotes + $note->downvotes) ?: 1)) * 100); 139 $rate = !$p && !($note->upvotes + $note->downvotes) ? "no votes..." : "$p% like this..."; 150 <div id="Vu{$note->id}"> 153 <div id="Vd{$note->id}"> [all …]
|
H A D | version.inc | 11 * "note" => "this file was updated 29feb due to broken phar files..",
|
H A D | releases.inc | 14701 'note' => '', 14709 'note' => '', 14724 'note' => '', 14801 'note' => '', 14809 'note' => '', 14824 'note' => '', 14875 'note' => '', 14883 'note' => '', 14898 'note' => '', 14975 'note' => '', [all …]
|
H A D | branches.inc | 170 /* If you provide an array to $always_include, note that the version numbers
|
H A D | layout.inc | 202 // Clean out the content of one user note for printing to HTML
|
H A D | errors.inc | 623 <p>Please note that legacy manuals are maintained by Zend and not the PHP Documentation Group. Any …
|
H A D | pregen-news.inc | 3628 … <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 D | add-note.css | 1 #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 D | theme-base.css | 389 /* Add a note buttons. */ 405 #usernotes .note { 410 #usernotes .note .votes { 414 #usernotes .note .name { 420 #usernotes .note .name em { 425 #usernotes .note .date { 434 #usernotes .note .admin { 443 #usernotes .note .text { 1050 blockquote.note { 1056 blockquote.note strong.note { [all …]
|
H A D | print.css | 20 #usernotes .note, #usernotes {
|
H A D | theme-medium.css | 139 blockquote.note { 147 .refsect1 blockquote.note { 163 blockquote.note, 756 #usernotes .note .name { 759 #usernotes .note .date { 762 #usernotes .note .name:hover + .genanchor { 765 #usernotes .note .text { 768 #usernotes .note .votes .tally { 771 #usernotes .note .votes a { 808 #usernotes .note .text,
|
/web-php/ |
H A D | robots.txt | 8 Disallow: /manual/add-note.php 9 Disallow: /manual/vote-note.php
|
/web-php/include/ui_translation/ |
H A D | en.ini | 7 add_a_note = "add a note"
|
/web-php/fonts/Font-Awesome/ |
H A D | README.txt | 5 Please, note, that you should obey original font licenses, used to make this
|
/web-php/.github/ |
H A D | CONTRIBUTING.md | 30 sent to the pull request mailing list. Sending a note to [PHP php.net internal infrastructure discu…
|
Completed in 163 milliseconds