浏览代码

Fixed indentations

Ruud Kamphuis 13 年之前
父节点
当前提交
39efae2971
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      Metadata/Driver/AnnotationDriver.php
  2. 3 3
      Serializer/GraphNavigator.php
  3. 1 1
      Tests/Fixtures/AuthorReadOnly.php

+ 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;
     }