framework/gii/components/Pear/Text/Diff/Engine/shell.php
function _getLines(&$text_lines, &$line_no, $end = false)
    {
        if (!empty($end)) {
            $lines = array();
            // We can shift even more
            while ($line_no <= $end) {
                array_push($lines, array_shift($text_lines));
                $line_no++;
            }
        } else {
            $lines = array(array_shift($text_lines));
            $line_no++;
        }

        return $lines;
    }
function _getLines(&$text_lines, &$line_no, $end = false)
    {
        if (!empty($end)) {
            $lines = array();
            // We can shift even more
            while ($line_no <= $end) {
                array_push($lines, array_shift($text_lines));
                $line_no++;
            }
        } else {
            $lines = array(array_shift($text_lines));
            $line_no++;
        }

        return $lines;
    }
function _getLines ( & $ text_lines , & $ line_no , $ end = false ) { if ( ! empty ( $ end ) ) { $ lines = array ( ) ; // We can shift even more while ( $ line_no <= $ end ) { array_push ( $ lines , array_shift ( $ text_lines ) ) ; $ line_no ++ ; } } else { $ lines = array ( array_shift ( $ text_lines ) ) ; $ line_no ++ ; } return $ lines ; }
Get lines from either the old or new text

@access private

@param array &$text_lines Either $from_lines or $to_lines
@param int   &$line_no    Current line number
@param int   $end         Optional end line, when we want to chop more
than one line.

@return array The chopped lines
Get lines from either the old or new text