@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | // First the values from '<% arg %>', and store the used arguments in a collection |
41 | 41 | $processedArguments = []; |
42 | 42 | foreach (static::$arguments as $name => $value) { |
43 | - $arguments .= "'" . $name . "' => " . $value . ','; |
|
43 | + $arguments .= "'".$name."' => ".$value.','; |
|
44 | 44 | $processedArguments[] = $name; |
45 | 45 | } |
46 | 46 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | // Clear only the used arguments in current template from the static storage |
62 | 62 | foreach ($processedArguments as $argument) { |
63 | - $matches = preg_grep('/<%\s+set\s+(' . $argument . ')\s+%>/', [$res['Template']['text']]); |
|
63 | + $matches = preg_grep('/<%\s+set\s+('.$argument.')\s+%>/', [$res['Template']['text']]); |
|
64 | 64 | if (isset($matches[0])) { |
65 | 65 | unset(static::$arguments[$argument]); |
66 | 66 | } |