Passed
Push — master ( dc473e...3aff2b )
by Michael
02:45
created
src/Hydrator/Extension/ErrorsExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.