Passed
Push — master ( e2d15a...cad3b0 )
by Maxim
02:57
created
src/InjectedStringSuit.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function resolveClassNames(string $namespace): string
34 34
     {
35
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
35
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
36 36
             return str_replace(':', ':\\', $matches[0]);
37 37
         }, $this->expression);
38 38
         $expression = preg_replace('/(?<!:):(?=([a-zA-Z_][a-zA-Z0-9_]*))/', "$namespace\\", $expression);
39
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
39
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
40 40
             return str_replace(':\\', ':', $matches[0]);
41 41
         }, $expression);
42 42
         return $expression;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         return preg_replace_callback(
48 48
             '/`([^`]|\\\\`)+((?<!\\\\)`)/',
49
-            function (array $matches) use($charlist): string {
49
+            function(array $matches) use($charlist): string {
50 50
                 return addcslashes($matches[0], $charlist);
51 51
             },
52 52
             $this->expression
Please login to merge, or discard this patch.