phplinter\Lint\BaseLint::parse_args PHP Method

parse_args() protected method

----------------------------------------------------------------------+ Parse argument-list
protected parse_args ( &$i ) : Array
return Array ----------------------------------------------------------------------+
    protected function parse_args(&$i)
    {
        $out = array();
        $o = $this->node->tokens;
        while (true) {
            switch ($o[++$i][0]) {
                case T_VARIABLE:
                    if ($o[$i + 1][0] === T_EQUALS) {
                        $out[$o[$i][1]] = $o[$i + 2][1];
                        $i += 2;
                    } else {
                        $out[$o[$i][1]] = null;
                    }
                    break;
                case T_PARENTHESIS_CLOSE:
                    return $out;
            }
        }
    }