src/Events/php_exporter.php
public function get_vars_from_array($throw_multiline = true)
	{
		$line = ltrim($this->file_lines[$this->current_event_line - 1], " \t");
		if ($line === ');' || $line === '];')
		{
			$vars_array = $this->get_vars_from_multi_line_array();
		}
		else
		{
			$vars_array = $this->get_vars_from_single_line_array($line, $throw_multiline);
		}

		foreach ($vars_array as $var)
		{
			if (!preg_match('#^([a-zA-Z_][a-zA-Z0-9_]*)$#', $var))
			{
				throw new \LogicException("Found invalid var '{$var}' in array for event '{$this->current_event}' in file '{$this->current_clean_file}:{$this->current_event_line}'", 3);
			}
		}

		sort($vars_array);

		return $vars_array;
	}
public function get_vars_from_array($throw_multiline = true)
	{
		$line = ltrim($this->file_lines[$this->current_event_line - 1], " \t");
		if ($line === ');' || $line === '];')
		{
			$vars_array = $this->get_vars_from_multi_line_array();
		}
		else
		{
			$vars_array = $this->get_vars_from_single_line_array($line, $throw_multiline);
		}

		foreach ($vars_array as $var)
		{
			if (!preg_match('#^([a-zA-Z_][a-zA-Z0-9_]*)$#', $var))
			{
				throw new \LogicException("Found invalid var '{$var}' in array for event '{$this->current_event}' in file '{$this->current_clean_file}:{$this->current_event_line}'", 3);
			}
		}

		sort($vars_array);

		return $vars_array;
	}
Find the $vars array

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

@return array        List of variables
@throws \LogicException