@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * |
13 | 13 | * @return \Closure|null |
14 | 14 | */ |
15 | - public function filter(Condition $condition = null, int &$limit = null, int &$offset = null) |
|
15 | + public function filter(Condition $condition = null, int & $limit = null, int & $offset = null) |
|
16 | 16 | { |
17 | 17 | $offset = (int)$offset; |
18 | 18 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $limit = $condition->getLimit(); |
21 | 21 | $offset = (int)$condition->getOffset(); |
22 | 22 | $conditions = $condition->getConditions(); |
23 | - return function (array $item) use ($conditions) { |
|
23 | + return function(array $item) use ($conditions) { |
|
24 | 24 | foreach ($conditions as $cond) { |
25 | 25 | if (!\is_array($cond)) { |
26 | 26 | continue; |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | { |
103 | 103 | if ($condition) { |
104 | 104 | $sort = $condition->getSort(); |
105 | - return function (array $item1, array $item2) use ($sort) { |
|
105 | + return function(array $item1, array $item2) use ($sort) { |
|
106 | 106 | foreach ($sort as $field => $dir) { |
107 | 107 | $value1 = $item1[$field] ?? null; |
108 | 108 | $value2 = $item2[$field] ?? null; |