| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | <?php | 
| 2 | -declare(strict_types=1); | |
| 2 | +declare(strict_types = 1); | |
| 3 | 3 | |
| 4 | 4 | namespace WriteModel; | 
| 5 | 5 | |
| @@ -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 | |
| @@ -35,10 +35,10 @@ discard block | ||
| 35 | 35 | } | 
| 36 | 36 | |
| 37 | 37 | // use only data indicated in $fields array | 
| 38 | -        $data = array_filter($data, function ($key) { return in_array($key, $this->fields); }, ARRAY_FILTER_USE_KEY); | |
| 38 | +        $data = array_filter($data, function($key) { return in_array($key, $this->fields); }, ARRAY_FILTER_USE_KEY); | |
| 39 | 39 | |
| 40 | 40 | // flip $fields to have it's value as keys in $defaults array and reset all values to null | 
| 41 | -        $defaults = array_map(function () { return null; }, array_flip($this->fields)); | |
| 41 | +        $defaults = array_map(function() { return null; }, array_flip($this->fields)); | |
| 42 | 42 | $command = call_user_func($this->factoryMethod, array_merge($defaults, $data)); | 
| 43 | 43 | |
| 44 | 44 |          if (!is_object($command)) { | 
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | <?php | 
| 2 | -declare(strict_types=1); | |
| 2 | +declare(strict_types = 1); | |
| 3 | 3 | |
| 4 | 4 | namespace WriteModel; | 
| 5 | 5 | |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | <?php | 
| 2 | -declare(strict_types=1); | |
| 2 | +declare(strict_types = 1); | |
| 3 | 3 | |
| 4 | 4 | namespace WriteModel; | 
| 5 | 5 | |