Completed
Push — master ( a62027...79a6e0 )
by Maxim
03:54 queued 01:49
created
src/Types/Iterateable.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
      * @param $var mixed variable
24 24
      * @return bool result of the checkout
25 25
      */
26
-	final public static function is($var): bool
27
-	{
28
-		return is_iterable($var) && static::isThis($var);
29
-	}
26
+    final public static function is($var): bool
27
+    {
28
+        return is_iterable($var) && static::isThis($var);
29
+    }
30 30
 
31 31
     /**
32 32
      * Checks the type of the variable.
@@ -34,5 +34,5 @@  discard block
 block discarded – undo
34 34
      * @param $var mixed variable
35 35
      * @return bool result of the checkout
36 36
      */
37
-	abstract protected static function isThis($var): bool;
37
+    abstract protected static function isThis($var): bool;
38 38
 }
Please login to merge, or discard this patch.
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.
src/InjectedStringSuit.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $this->expression = preg_replace_callback(
41 41
             '/`{[^}]*}`/',
42
-            function (array $matches): string {
42
+            function(array $matches): string {
43 43
                 $result = substr($matches[0], 1, strlen($matches[0]) - 2);
44 44
                 return sprintf('`(function ($var) %s)($var)`', $result);
45 45
             },
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function processThis(): self
57 57
     {
58
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
58
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
59 59
             return str_replace('$.', '\\$.', $matches[0]);
60 60
         }, $this->expression);
61 61
         $expression = preg_replace('/\$\./', '$this->', $expression);
62
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
62
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
63 63
             return str_replace('\\$.', '$.', $matches[0]);
64 64
         }, $expression);
65 65
         $this->expression = $expression;
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function resolveClassNames(string $namespace): self
77 77
     {
78
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
78
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
79 79
             return str_replace(':', ':\\', $matches[0]);
80 80
         }, $this->expression);
81 81
         $expression = preg_replace('/(?<!:):(?=([a-zA-Z_][a-zA-Z0-9_]*))/', "$namespace\\", $expression);
82
-        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function (array $matches) {
82
+        $expression = preg_replace_callback('/"[^"]"|\'[^\']\'/', function(array $matches) {
83 83
             return str_replace(':\\', ':', $matches[0]);
84 84
         }, $expression);
85 85
         $this->expression = $expression;
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         $this->expression = preg_replace_callback(
99 99
             '/`([^`]|\\\\`)+((?<!\\\\)`)/',
100
-            function (array $matches) use($charlist): string {
100
+            function(array $matches) use($charlist): string {
101 101
                 return addcslashes($matches[0], $charlist);
102 102
             },
103 103
             $this->expression
Please login to merge, or discard this patch.