@@ -211,8 +211,8 @@ discard block |
||
211 | 211 | $factory = new LazyLoadingGhostFactory(); |
212 | 212 | } |
213 | 213 | |
214 | - $initializer = function ( |
|
215 | - LazyLoadingInterface &$proxy, |
|
214 | + $initializer = function( |
|
215 | + LazyLoadingInterface&$proxy, |
|
216 | 216 | $method, |
217 | 217 | array $parameters, |
218 | 218 | & $initializer |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | $id |
223 | 223 | ) { |
224 | 224 | if ($method !== 'getId' && $method !== 'setId' && $method !== 'jsonSerialize') { |
225 | - $initializer = null; // disable initialization |
|
225 | + $initializer = null; // disable initialization |
|
226 | 226 | // load data and modify the object here |
227 | 227 | if ($id) { |
228 | 228 | $repository = $sdk->getRepository($classMetadata->getModelName()); |
@@ -262,7 +262,7 @@ |
||
262 | 262 | $mapping = $this->sdk->getMapping(); |
263 | 263 | |
264 | 264 | return array_map( |
265 | - function ($item) use ($mapping) { |
|
265 | + function($item) use ($mapping) { |
|
266 | 266 | if (is_object($item)) { |
267 | 267 | $classname = get_class($item); |
268 | 268 |