Searched refs:upvotes (Results 1 – 5 of 5) sorted by relevance
52 return ($note->upvotes - $note->downvotes - $this->minVote) * $this->voteFactor + .3;56 return $note->upvotes + $note->downvotes <= 2 ? 0.5 : $this->calcRating($note);60 $totalVotes = $note->upvotes + $note->downvotes;61 return $totalVotes > 0 ? $note->upvotes / $totalVotes : .5;87 $this->minVote = $this->maxVote = ($first->upvotes - $first->downvotes);91 $this->maxVote = max($this->maxVote, ($note->upvotes - $note->downvotes));92 $this->minVote = min($this->minVote, ($note->upvotes - $note->downvotes));
14 public int $upvotes = 0, argument
406 'upvotes' => $note->upvotes,
61 $N[$_REQUEST['id']]->upvotes++;
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...";
Completed in 10 milliseconds