@@ -14,6 +14,7 @@ |
||
14 | 14 | * |
15 | 15 | * @param DataEnricher $invoker |
16 | 16 | * @param string $property Property key which should trigger the processor |
17 | + * @return void |
|
17 | 18 | */ |
18 | 19 | public function __construct(DataEnricher $invoker, $property); |
19 | 20 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | |
56 | 56 | foreach ($merge as $object) { |
57 | 57 | foreach ($object as $key => $value) { |
58 | - $value->$key = $value; |
|
58 | + $value->$key = $value; |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | { |
54 | 54 | $value = (object)[]; |
55 | 55 | |
56 | - foreach ($merge as $object) { |
|
56 | + foreach ($merge as $object) { |
|
57 | 57 | foreach ($object as $key => $value) { |
58 | 58 | $value->$key = $value; |
59 | 59 | } |
@@ -42,14 +42,14 @@ |
||
42 | 42 | public function __construct($source) |
43 | 43 | { |
44 | 44 | if (!is_object($source)) { |
45 | - throw new \Exception("Data enricher on works on an object, not on a " . gettype($source)); |
|
45 | + throw new \Exception("Data enricher on works on an object, not on a ".gettype($source)); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | $this->source = $source; |
49 | 49 | |
50 | 50 | foreach (static::$defaultProcessors as $property => $processor) { |
51 | 51 | if (is_string($processor)) { |
52 | - $class = $processor[0] === '\\' ? substr($processor, 1) : __CLASS__ . '\\' . $processor; |
|
52 | + $class = $processor[0] === '\\' ? substr($processor, 1) : __CLASS__.'\\'.$processor; |
|
53 | 53 | $processor = new $class($this, $property); |
54 | 54 | } |
55 | 55 |