Fixed to conform to coding standards

This commit is contained in:
Chris Gray 2014-01-17 00:46:39 -06:00
parent 78974dee1b
commit 415e642351
2 changed files with 4 additions and 3 deletions

View File

@ -428,7 +428,8 @@ class Template
* *
* @return array the argument list as an array * @return array the argument list as an array
*/ */
public function parseArguments($string){ public function parseArguments($string)
{
$parts = array(); $parts = array();
preg_match_all('#(?<!\\\\)("|\')(?:[^\\\\]|\\\\.)*?\1|\S+#s', $string, $parts); preg_match_all('#(?<!\\\\)("|\')(?:[^\\\\]|\\\\.)*?\1|\S+#s', $string, $parts);
$parts = isset($parts[0])?$parts[0]:array(); $parts = isset($parts[0])?$parts[0]:array();