Passed
Push — master ( cd5206...92cf14 )
by Tom
02:02
created
maphper/lib/propertywriter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.