Passed
Push — master ( ce9550...f62ea3 )
by Johnny
02:15
created
src/Cortex/Triggers/Trigger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Cortex/Tags/ArrayTag.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                                 }
Please login to merge, or discard this patch.