Completed
Push — master ( 77f066...326ded )
by Maxim
02:40 queued 22s
created
src/ConditionsRunner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         if (empty($conditions)) {
52 52
             return true;
53 53
         } else {
54
-            return array_reduce($conditions, function ($carry, $item) {
54
+            return array_reduce($conditions, function($carry, $item) {
55 55
                 return $this->reduce($carry, $item, true);
56 56
             });
57 57
         }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         if ($item === $mode || $carry === $mode) {
71 71
             return $mode;
72 72
         } elseif (is_array($item)) {
73
-            return array_reduce($item, function ($carry, $item) {
73
+            return array_reduce($item, function($carry, $item) {
74 74
                 return $this->reduce($carry, $item, false);
75 75
             });
76 76
         } else {
Please login to merge, or discard this patch.
src/InjectedStringSuit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function processThis(): self
39 39
     {
40
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
40
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
41 41
             return str_replace('$.', '\\$.', $matches[0]);
42 42
         }, $this->expression);
43 43
         $expression = preg_replace('/\$\./', '$this->', $expression);
44
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
44
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
45 45
             return str_replace('\\$.', '$.', $matches[0]);
46 46
         }, $expression);
47 47
         $this->expression = $expression;
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function resolveClassNames(string $namespace): self
59 59
     {
60
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
60
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
61 61
             return str_replace(':', ':\\', $matches[0]);
62 62
         }, $this->expression);
63 63
         $expression = preg_replace('/(?<!:):(?=([a-zA-Z_][a-zA-Z0-9_]*))/', "$namespace\\", $expression);
64
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
64
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
65 65
             return str_replace(':\\', ':', $matches[0]);
66 66
         }, $expression);
67 67
         $this->expression = $expression;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $this->expression = preg_replace_callback(
81 81
             '/`([^`]|\\\\`)+((?<!\\\\)`)/',
82
-            function (array $matches) use($charlist): string {
82
+            function(array $matches) use($charlist): string {
83 83
                 return addcslashes($matches[0], $charlist);
84 84
             },
85 85
             $this->expression
Please login to merge, or discard this patch.