public function get_vars_from_single_line_array($line, $throw_multiline = true)
	{
		$match = array();
		preg_match('#^\$vars = (?:(\[)|array\()\'([a-z0-9_\' ,]+)\'(?(1)\]|\));$#i', $line, $match);

		if (isset($match[2]))
		{
			$vars_array = explode("', '", $match[2]);
			if ($throw_multiline && sizeof($vars_array) > 6)
			{
				throw new \LogicException('Should use multiple lines for $vars definition '
					. "for event '{$this->current_event}' in file '{$this->current_clean_file}:{$this->current_event_line}'", 2);
			}

			return $vars_array;
		}
		else
		{
			throw new \LogicException("Can not find '\$vars = array();'-line for event '{$this->current_event}' in file '{$this->current_clean_file}:{$this->current_event_line}'. Are you using UNIX style linefeeds?", 1);
		}
	}
public function get_vars_from_single_line_array($line, $throw_multiline = true)
	{
		$match = array();
		preg_match('#^\$vars = (?:(\[)|array\()\'([a-z0-9_\' ,]+)\'(?(1)\]|\));$#i', $line, $match);

		if (isset($match[2]))
		{
			$vars_array = explode("', '", $match[2]);
			if ($throw_multiline && sizeof($vars_array) > 6)
			{
				throw new \LogicException('Should use multiple lines for $vars definition '
					. "for event '{$this->current_event}' in file '{$this->current_clean_file}:{$this->current_event_line}'", 2);
			}

			return $vars_array;
		}
		else
		{
			throw new \LogicException("Can not find '\$vars = array();'-line for event '{$this->current_event}' in file '{$this->current_clean_file}:{$this->current_event_line}'. Are you using UNIX style linefeeds?", 1);
		}
	}
public function get_vars_from_single_line_array ( $ line , $ throw_multiline = true ) { $ match = array ( ) ; preg_match ( '#^\$vars = (?:(\[)|array\()\'([a-z0-9_\' ,]+)\'(?(1)\]|\));$#i' , $ line , $ match ) ; if ( isset ( $ match [ 2 ] ) ) { $ vars_array = explode ( "', '" , $ match [ 2 ] ) ; if ( $ throw_multiline && sizeof ( $ vars_array ) > 6 ) { throw new \ LogicException ( 'Should use multiple lines for $vars definition ' . "for event '{$this->current_event}' in file '{$this->current_clean_file}:{$this->current_event_line}'" , 2 ) ; } return $ vars_array ; } else { throw new \ LogicException ( "Can not find '\$vars = array();'-line for event '{$this->current_event}' in file '{$this->current_clean_file}:{$this->current_event_line}'. Are you using UNIX style linefeeds?" , 1 ) ; } }
Find the variables in a single line array

@param    string $line
@param    bool   $throw_multiline      Throw an exception when there are too
many arguments in one line.

@return array        List of variables
@throws \LogicException
Find the variables in a single line array