Lines Matching full:first
191 * A negative $first let read the current revision too.
198 * @param int $first skip the first n changelog lines
205 public function getRevisions($first, $num) argument
219 if ($first < 0) {
220 $first = 0;
225 $first = max($first + 1, 0);
246 while ($count < $num + $first) {
288 $num = max(min(count($lines) - $first, $num), 0);
289 if ($first > 0 && $num > 0) {
290 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
291 } elseif ($first > 0 && $num == 0) {
292 $lines = array_slice($lines, 0, max(count($lines) - $first, 0));
293 } elseif ($first == 0 && $num > 0) {
496 * - $head: position of first read changelog line