@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function turnObject($destination, $sourceObject) |
29 | 29 | { |
30 | 30 | $destination = new $destination(); |
31 | - if(is_object($sourceObject)){ |
|
31 | + if (is_object($sourceObject)) { |
|
32 | 32 | $sourceReflection = new \ReflectionObject($sourceObject); |
33 | 33 | $destinationReflection = new \ReflectionObject($destination); |
34 | 34 | $sourceProperties = $sourceReflection->getProperties(); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | if ($destinationReflection->hasProperty($name)) { |
42 | 42 | $propDest = $destinationReflection->getProperty($name); |
43 | 43 | $propDest->setAccessible(true); |
44 | - $propDest->setValue($destination,$value); |
|
44 | + $propDest->setValue($destination, $value); |
|
45 | 45 | } else { |
46 | 46 | $destination->$name = $value; |
47 | 47 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function turnObjects($destination, $data) |
64 | 64 | { |
65 | 65 | $destination = new $destination(); |
66 | - if(count($data)){ |
|
66 | + if (count($data)) { |
|
67 | 67 | $destination->data = json_decode(json_encode($data, true)); |
68 | 68 | } |
69 | 69 |