@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | protected function parseTags(string $trigger, Input $input): string |
44 | 44 | { |
45 | - synapse()->tags->each(function ($tag) use (&$trigger, $input) { |
|
45 | + synapse()->tags->each(function($tag) use (&$trigger, $input) { |
|
46 | 46 | $class = "\\Axiom\\Rivescript\\Cortex\\Tags\\$tag"; |
47 | 47 | $tagClass = new $class("trigger"); |
48 | 48 |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * Find the match |
84 | 84 | */ |
85 | - $regex = "(" . implode('|', $array) . ")"; |
|
86 | - if (@preg_match_all('/' . $regex . '/ui', $input->source(), $wildcards)) { |
|
85 | + $regex = "(".implode('|', $array).")"; |
|
86 | + if (@preg_match_all('/'.$regex.'/ui', $input->source(), $wildcards)) { |
|
87 | 87 | array_shift($wildcards); |
88 | 88 | |
89 | 89 | if ($wildcards) { |
@@ -99,9 +99,9 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * Find the match |
101 | 101 | */ |
102 | - $regex = "(?:" . implode('|', $array) . ")"; |
|
102 | + $regex = "(?:".implode('|', $array).")"; |
|
103 | 103 | |
104 | - if (@preg_match_all('/' . $regex . '/ui', $source, $results)) { |
|
104 | + if (@preg_match_all('/'.$regex.'/ui', $source, $results)) { |
|
105 | 105 | foreach ($results as $result) { |
106 | 106 | $source = str_replace("@{$name}", $result[0], $source); |
107 | 107 | } |