Lines Matching defs:num
197 * @param int $num number of revisions to return
203 public function getRevisions($first, $num)
212 $num = max($num, 0);
213 if ($num == 0) {
244 while ($count < $num + $first) {
286 $num = max(min(count($lines) - $first, $num), 0);
287 if ($first > 0 && $num > 0) {
288 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
289 } elseif ($first > 0 && $num == 0) {
291 } elseif ($first == 0 && $num > 0) {
292 $lines = array_slice($lines, max(count($lines) - $num, 0));