@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace WriteModel; |
5 | 5 | |
@@ -55,12 +55,12 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | // use only data indicated in $fields array |
58 | - $data = array_filter($data, function ($key) { |
|
58 | + $data = array_filter($data, function($key) { |
|
59 | 59 | return in_array($key, $this->fields); |
60 | 60 | }, ARRAY_FILTER_USE_KEY); |
61 | 61 | |
62 | 62 | // flip $fields to have it's value as keys in $defaults array and reset all values to null |
63 | - $defaults = array_map(function () { |
|
63 | + $defaults = array_map(function() { |
|
64 | 64 | return null; |
65 | 65 | }, array_flip($this->fields)); |
66 | 66 |