Completed
Push — master ( 768e99...dd92b4 )
by
unknown
25:51 queued 15s
created
lib/public/EventDispatcher/JsonSerializer.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -22,29 +22,29 @@
 block discarded – undo
22 22
  */
23 23
 
24 24
 final class JsonSerializer {
25
-	/**
26
-	 * @since 30.0.0
27
-	 */
28
-	public static function serializeFileInfo(FileInfo $node): array {
29
-		if ($node instanceof NonExistingFile || $node instanceof NonExistingFolder) {
30
-			return [
31
-				'path' => $node->getPath(),
32
-			];
33
-		} else {
34
-			return [
35
-				'id' => $node->getId(),
36
-				'path' => $node->getPath(),
37
-			];
38
-		}
39
-	}
25
+    /**
26
+     * @since 30.0.0
27
+     */
28
+    public static function serializeFileInfo(FileInfo $node): array {
29
+        if ($node instanceof NonExistingFile || $node instanceof NonExistingFolder) {
30
+            return [
31
+                'path' => $node->getPath(),
32
+            ];
33
+        } else {
34
+            return [
35
+                'id' => $node->getId(),
36
+                'path' => $node->getPath(),
37
+            ];
38
+        }
39
+    }
40 40
 
41
-	/**
42
-	 * @since 30.0.0
43
-	 */
44
-	public static function serializeUser(IUser $user): array {
45
-		return [
46
-			'uid' => $user->getUID(),
47
-			'displayName' => $user->getDisplayName(),
48
-		];
49
-	}
41
+    /**
42
+     * @since 30.0.0
43
+     */
44
+    public static function serializeUser(IUser $user): array {
45
+        return [
46
+            'uid' => $user->getUID(),
47
+            'displayName' => $user->getDisplayName(),
48
+        ];
49
+    }
50 50
 }
Please login to merge, or discard this patch.