@@ -55,12 +55,12 @@ |
||
| 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 | |