@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function hydrate($object, $source, DocumentHydrator $hydrator) |
24 | 24 | { |
25 | - if (! $object instanceof ErrorsAwareInterface) { |
|
25 | + if (!$object instanceof ErrorsAwareInterface) { |
|
26 | 26 | throw new InvalidDocumentException(sprintf( |
27 | 27 | 'Given instance of "%s" does not implements "%s"', |
28 | 28 | get_class($object), |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | foreach (['id', 'status', 'code', 'title', 'detail'] as $property) |
53 | 53 | { |
54 | 54 | if (isset($source->$property)) { |
55 | - $error->{'set' . ucfirst($property)}($source->$property); |
|
55 | + $error->{'set'.ucfirst($property)}($source->$property); |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 |