Lines Matching refs:max
152 $rev = max(0, $rev);
214 $num = max($num, 0);
225 $first = max($first + 1, 0);
245 $finger = max($tail - $this->chunk_size, 0);
251 $finger = max($finger - $this->chunk_size, 0);
259 $read_size = max($tail - $finger, 0); // found chunk size
262 $tmp = @fread($fp, max(min($this->chunk_size, $read_size - $got), 0));
281 $finger = max($tail - $this->chunk_size, 0);
288 $num = max(min(count($lines) - $first, $num), 0);
290 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
292 $lines = array_slice($lines, 0, max(count($lines) - $first, 0));
294 $lines = array_slice($lines, max(count($lines) - $num, 0));
327 $rev = max($rev, 0);
394 * @param int $max maximum number of revisions returned
397 public function getRevisionsAround($rev1, $rev2, $max = 50) argument
399 $max = (int) (abs($max) / 2) * 2 + 1;
400 $rev1 = max($rev1, 0);
401 $rev2 = max($rev2, 0);
414 $result2 = $this->retrieveRevisionsAround($rev2, $max);
424 $result1 = $this->retrieveRevisionsAround($rev1, $max);
442 if ($index > (int) ($max / 2)) {
454 $revs1 = array_slice($revs1, max($index - (int) ($max / 2), 0), $max);
489 * @param int $max maximum number of revisions to be returned
500 protected function retrieveRevisionsAround($rev, $max) argument
528 if ($afterCount > (int) ($max / 2)) {
540 $lastTail == $eof && $afterCount <= (int) ($max / 2) &&
566 if ($beforeCount > max((int) ($max / 2), $max - $afterCount)) {
578 $requestedRevs = array_slice($revs, -$max, $max);
644 'date' => max($lastRev + 1, time() - 1), // 1 sec before now or new page save