Lines Matching refs:first
205 * @param int $first skip the first n changelog lines
212 public function getRevisions($first, $num) argument
226 if ($first < 0) {
227 $first = 0;
232 $first = max($first + 1, 0);
253 while ($count < $num + $first) {
295 $num = max(min(count($lines) - $first, $num), 0);
296 if ($first > 0 && $num > 0) {
297 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
298 } elseif ($first > 0 && $num == 0) {
299 $lines = array_slice($lines, 0, max(count($lines) - $first, 0));
300 } elseif ($first == 0 && $num > 0) {