private function splitVariableDefault($variable_name, $parameter_symbol)
    {
        $variable_default = explode($parameter_symbol, $variable_name, 2);

        if (count($variable_default) !== 2 || empty($variable_default[1])) {
            throw new ParseException(
                'You must have valid parameter expansion syntax, eg. ${parameter:=word}',
                $variable_name,
                $this->parser->line_num
            );
        }

        return array(trim($variable_default[0]), trim($variable_default[1]));
    }
private function splitVariableDefault($variable_name, $parameter_symbol)
    {
        $variable_default = explode($parameter_symbol, $variable_name, 2);

        if (count($variable_default) !== 2 || empty($variable_default[1])) {
            throw new ParseException(
                'You must have valid parameter expansion syntax, eg. ${parameter:=word}',
                $variable_name,
                $this->parser->line_num
            );
        }

        return array(trim($variable_default[0]), trim($variable_default[1]));
    }
private function splitVariableDefault ( $ variable_name , $ parameter_symbol ) { $ variable_default = explode ( $ parameter_symbol , $ variable_name , 2 ) ; if ( count ( $ variable_default ) !== 2 || empty ( $ variable_default [ 1 ] ) ) { throw new ParseException ( 'You must have valid parameter expansion syntax, eg. ${parameter:=word}' , $ variable_name , $ this -> parser -> line_num ) ; } return array ( trim ( $ variable_default [ 0 ] ) , trim ( $ variable_default [ 1 ] ) ) ; }
Splits the parameter expansion into variable and default

@param string $variable_name    The variable name to split
@param string $parameter_symbol The parameter expansion symbol

@throws \M1\Env\Exception\ParseException If the parameter expansion if not valid syntax

@return array The split variable and default value
Splits the parameter expansion into variable and default