Browse Source

Fixed indentations

Ruud Kamphuis 13 năm trước cách đây
mục cha
commit
39efae2971

+ 1 - 1
Metadata/Driver/AnnotationDriver.php

@@ -124,7 +124,7 @@ class AnnotationDriver implements DriverInterface
                         $propertyMetadata->setGroups($annot->names);
                     } else if ($annot instanceof Inline) {
                         $propertyMetadata->inline = true;
-                   	} else if ($annot instanceof ReadOnly) {
+                    } else if ($annot instanceof ReadOnly) {
                         $propertyMetadata->readOnly = true;
                     }
                 }

+ 3 - 3
Serializer/GraphNavigator.php

@@ -114,9 +114,9 @@ final class GraphNavigator
                     continue;
                 }
 
-		        if (self::DIRECTION_DESERIALIZATION === $this->direction && $propertyMetadata->readOnly) {
-			        continue;
-			    }
+                if (self::DIRECTION_DESERIALIZATION === $this->direction && $propertyMetadata->readOnly) {
+                    continue;
+                }
 
                 // try custom handler
                 if (!$visitor->visitPropertyUsingCustomHandler($propertyMetadata, $data)) {

+ 1 - 1
Tests/Fixtures/AuthorReadOnly.php

@@ -44,7 +44,7 @@ class AuthorReadOnly
         $this->name = $name;
     }
 
-	public function getId()
+    public function getId()
     {
         return $this->id;
     }