@@ -4,10 +4,10 @@ discard block |
||
4 | 4 | private $closure; |
5 | 5 | public function __construct($object) { |
6 | 6 | if ($object instanceof \stdclass) { |
7 | - $this->closure = function ($field, $value) use ($object) { $object->$field = $value; }; |
|
7 | + $this->closure = function($field, $value) use ($object) { $object->$field = $value; }; |
|
8 | 8 | } |
9 | 9 | else { |
10 | - $this->closure = function ($field, $value) { $this->$field = $value; }; |
|
10 | + $this->closure = function($field, $value) { $this->$field = $value; }; |
|
11 | 11 | $this->closure = $this->closure->bindTo($object, $object); |
12 | 12 | } |
13 | 13 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | public function write($data) { |
16 | 16 | if ($data != null) { |
17 | 17 | foreach ($data as $key => $value) { |
18 | - ($this->closure)($key, $this->processDates($value)); |
|
18 | + ($this->closure)($key, $this->processDates($value)); |
|
19 | 19 | } |
20 | 20 | } |
21 | 21 | } |