phplinter\Linter::last_newline PHP Method

last_newline() protected method

----------------------------------------------------------------------+
protected last_newline ( $pos ) : Int
$pos Int
return Int ----------------------------------------------------------------------+
    protected function last_newline($pos)
    {
        $i = $pos;
        while ($i > 0) {
            if ($this->tokens[--$i][0] == T_NEWLINE) {
                break;
            }
        }
        return $i;
    }