@@ -4,10 +4,10 @@ |
||
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 | } |