Completed
Push — master ( a62027...79a6e0 )
by Maxim
03:54 queued 01:49
created
src/ConditionsProcessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
             ->get();
56 56
         $axsConditions = preg_replace_callback(
57 57
             '/(((>|<)=?)|(=|!)=)\s*\d+/',
58
-            function (array $matches): string {
58
+            function(array $matches): string {
59 59
                 return sprintf('\%s::count($var) %s', ConditionsRunner::class, $matches[0]);
60 60
             },
61 61
             $axsConditions
62 62
         );
63 63
         $axsConditions = preg_replace_callback(
64 64
             '/\d+\.\.\d+/',
65
-            function (array $matches): string {
65
+            function(array $matches): string {
66 66
                 list($min, $max) = explode('..', $matches[0]);
67 67
                 return sprintf('\%s::count($var) >= %d'
68 68
                     . ' && \%s::count($var) <= %d', ConditionsRunner::class, $min, ConditionsRunner::class, $max);
@@ -71,14 +71,14 @@  discard block
 block discarded – undo
71 71
         );
72 72
         $axsConditions = preg_replace_callback(
73 73
             '/\\\\[<>!=]/',
74
-            function (array $matches): string {
74
+            function(array $matches): string {
75 75
                 return substr($matches[0], 1);
76 76
             },
77 77
             $axsConditions
78 78
         );
79 79
         $axsConditions = preg_replace_callback(
80 80
             '/`[^`]+`/',
81
-            function (array $matches): string {
81
+            function(array $matches): string {
82 82
                 $subject = substr($matches[0], 1, strlen($matches[0]) - 2);
83 83
                 return sprintf('(function($var){return %s;})($var)', $subject);
84 84
             },
Please login to merge, or discard this patch.