Completed
Pull Request — master (#5)
by Lars
09:22 queued 07:19
created
src/ArrayyAbstract.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -151,34 +151,34 @@  discard block
 block discarded – undo
151 151
     }
152 152
 
153 153
     $ops = array(
154
-        'eq'          => function ($item, $prop, $value) {
154
+        'eq'          => function($item, $prop, $value) {
155 155
           return $item[$prop] === $value;
156 156
         },
157
-        'gt'          => function ($item, $prop, $value) {
157
+        'gt'          => function($item, $prop, $value) {
158 158
           return $item[$prop] > $value;
159 159
         },
160
-        'gte'         => function ($item, $prop, $value) {
160
+        'gte'         => function($item, $prop, $value) {
161 161
           return $item[$prop] >= $value;
162 162
         },
163
-        'lt'          => function ($item, $prop, $value) {
163
+        'lt'          => function($item, $prop, $value) {
164 164
           return $item[$prop] < $value;
165 165
         },
166
-        'lte'         => function ($item, $prop, $value) {
166
+        'lte'         => function($item, $prop, $value) {
167 167
           return $item[$prop] <= $value;
168 168
         },
169
-        'ne'          => function ($item, $prop, $value) {
169
+        'ne'          => function($item, $prop, $value) {
170 170
           return $item[$prop] !== $value;
171 171
         },
172
-        'contains'    => function ($item, $prop, $value) {
172
+        'contains'    => function($item, $prop, $value) {
173 173
           return in_array($item[$prop], (array) $value, true);
174 174
         },
175
-        'notContains' => function ($item, $prop, $value) {
175
+        'notContains' => function($item, $prop, $value) {
176 176
           return !in_array($item[$prop], (array) $value, true);
177 177
         },
178
-        'newer'       => function ($item, $prop, $value) {
178
+        'newer'       => function($item, $prop, $value) {
179 179
           return strtotime($item[$prop]) > strtotime($value);
180 180
         },
181
-        'older'       => function ($item, $prop, $value) {
181
+        'older'       => function($item, $prop, $value) {
182 182
           return strtotime($item[$prop]) < strtotime($value);
183 183
         },
184 184
     );
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     $result = array_values(
187 187
         array_filter(
188 188
             (array) $this->array,
189
-            function ($item) use (
189
+            function($item) use (
190 190
                 $property,
191 191
                 $value,
192 192
                 $ops,
Please login to merge, or discard this patch.