Passed
Push — master ( 98efde...7096b5 )
by Maxim
02:27
created
src/WS/Utils/Collections/Functions/Predicates.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -12,133 +12,133 @@
 block discarded – undo
12 12
 
13 13
     public static function lock(): Closure
14 14
     {
15
-        return static function (): bool {
15
+        return static function(): bool {
16 16
             return false;
17 17
         };
18 18
     }
19 19
 
20 20
     public static function notNull(): Closure
21 21
     {
22
-        return static function ($el): bool {
22
+        return static function($el): bool {
23 23
             return $el !== null;
24 24
         };
25 25
     }
26 26
 
27 27
     public static function notResistance(): Closure
28 28
     {
29
-        return static function (): bool {
29
+        return static function(): bool {
30 30
             return true;
31 31
         };
32 32
     }
33 33
 
34 34
     public static function equal($value): Closure
35 35
     {
36
-        return static function ($el) use ($value): bool {
36
+        return static function($el) use ($value): bool {
37 37
             return $el === $value;
38 38
         };
39 39
     }
40 40
 
41 41
     public static function lessThan($value): Closure
42 42
     {
43
-        return static function ($el) use ($value): bool {
43
+        return static function($el) use ($value): bool {
44 44
             return $el < $value;
45 45
         };
46 46
     }
47 47
 
48 48
     public static function lessOrEqual($value): Closure
49 49
     {
50
-        return static function ($el) use ($value): bool {
50
+        return static function($el) use ($value): bool {
51 51
             return $el <= $value;
52 52
         };
53 53
     }
54 54
 
55 55
     public static function moreThan($value): Closure
56 56
     {
57
-        return static function ($el) use ($value): bool {
57
+        return static function($el) use ($value): bool {
58 58
             return $el > $value;
59 59
         };
60 60
     }
61 61
 
62 62
     public static function moreOrEqual($value): Closure
63 63
     {
64
-        return static function ($el) use ($value): bool {
64
+        return static function($el) use ($value): bool {
65 65
             return $el >= $value;
66 66
         };
67 67
     }
68 68
 
69 69
     public static function not($value): Closure
70 70
     {
71
-        return static function ($el) use ($value): bool {
71
+        return static function($el) use ($value): bool {
72 72
             return $el !== $value;
73 73
         };
74 74
     }
75 75
 
76 76
     public static function in(array $values): Closure
77 77
     {
78
-        return static function ($el) use ($values): bool {
78
+        return static function($el) use ($values): bool {
79 79
             return in_array($el, $values, true);
80 80
         };
81 81
     }
82 82
 
83 83
     public static function notIn(array $values): Closure
84 84
     {
85
-        return static function ($el) use ($values): bool {
85
+        return static function($el) use ($values): bool {
86 86
             return !in_array($el, $values, true);
87 87
         };
88 88
     }
89 89
 
90 90
     public static function where(string $property, $value): Closure
91 91
     {
92
-        return static function ($ob) use ($property, $value) {
92
+        return static function($ob) use ($property, $value) {
93 93
             return $value === ObjectFunctions::getPropertyValue($ob, $property);
94 94
         };
95 95
     }
96 96
 
97 97
     public static function whereNot(string $property, $value): Closure
98 98
     {
99
-        return static function ($ob) use ($property, $value) {
99
+        return static function($ob) use ($property, $value) {
100 100
             return $value !== ObjectFunctions::getPropertyValue($ob, $property);
101 101
         };
102 102
     }
103 103
 
104 104
     public static function whereIn(string $property, array $values): Closure
105 105
     {
106
-        return static function ($ob) use ($property, $values) {
106
+        return static function($ob) use ($property, $values) {
107 107
             return in_array(ObjectFunctions::getPropertyValue($ob, $property), $values, true);
108 108
         };
109 109
     }
110 110
 
111 111
     public static function whereNotIn(string $property, array $values): Closure
112 112
     {
113
-        return static function ($ob) use ($property, $values) {
113
+        return static function($ob) use ($property, $values) {
114 114
             return !in_array(ObjectFunctions::getPropertyValue($ob, $property), $values, true);
115 115
         };
116 116
     }
117 117
 
118 118
     public static function whereMoreThan(string $property, $value): Closure
119 119
     {
120
-        return static function (object $ob) use ($property, $value) {
120
+        return static function(object $ob) use ($property, $value) {
121 121
             return ObjectFunctions::getPropertyValue($ob, $property) > $value;
122 122
         };
123 123
     }
124 124
 
125 125
     public static function whereLessThan(string $property, $value): Closure
126 126
     {
127
-        return static function (object $ob) use ($property, $value) {
127
+        return static function(object $ob) use ($property, $value) {
128 128
             return ObjectFunctions::getPropertyValue($ob, $property) < $value;
129 129
         };
130 130
     }
131 131
 
132 132
     public static function whereMoreOrEqual(string $property, $value): Closure
133 133
     {
134
-        return static function (object $ob) use ($property, $value) {
134
+        return static function(object $ob) use ($property, $value) {
135 135
             return ObjectFunctions::getPropertyValue($ob, $property) >= $value;
136 136
         };
137 137
     }
138 138
 
139 139
     public static function whereLessOrEqual(string $property, $value): Closure
140 140
     {
141
-        return static function (object $ob) use ($property, $value) {
141
+        return static function(object $ob) use ($property, $value) {
142 142
             return ObjectFunctions::getPropertyValue($ob, $property) <= $value;
143 143
         };
144 144
     }
Please login to merge, or discard this patch.