Completed
Pull Request — master (#84)
by Marcos
565:52 queued 561:00
created
lib/Db/ShareRequest.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -37,58 +37,58 @@
 block discarded – undo
37 37
 
38 38
 class ShareRequest extends PermissionEntity implements \JsonSerializable {
39 39
 
40
-    protected
41
-        $itemId,
42
-        $itemGuid,
43
-        $targetUserId,
44
-        $targetVaultId,
45
-        $targetVaultGuid,
46
-        $sharedKey,
47
-        $permissions,
48
-        $created,
40
+	protected
41
+		$itemId,
42
+		$itemGuid,
43
+		$targetUserId,
44
+		$targetVaultId,
45
+		$targetVaultGuid,
46
+		$sharedKey,
47
+		$permissions,
48
+		$created,
49 49
 		$fromUserId;
50 50
 
51
-    public function __construct() {
52
-        // add types in constructor
53
-        $this->addType('itemId', 'integer');
54
-        $this->addType('vaultId', 'integer');
55
-        $this->addType('permissions', 'integer');
56
-    }
51
+	public function __construct() {
52
+		// add types in constructor
53
+		$this->addType('itemId', 'integer');
54
+		$this->addType('vaultId', 'integer');
55
+		$this->addType('permissions', 'integer');
56
+	}
57 57
 
58
-    /**
59
-     * Specify data which should be serialized to JSON
60
-     * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
61
-     * @return mixed data which can be serialized by <b>json_encode</b>,
62
-     * which is a value of any type other than a resource.
63
-     * @since 5.4.0
64
-     */
65
-    function jsonSerialize()
66
-    {
67
-        return [
68
-            'req_id' => $this->getId(),
69
-            'item_id' => $this->getItemId(),
70
-            'item_guid' => $this->getItemGuid(),
71
-            'target_user_id' => $this->getTargetUserId(),
72
-            'target_vault_id' => $this->getTargetVaultId(),
73
-            'target_vault_guid' => $this->getTargetVaultGuid(),
74
-            'from_user_id' => $this->getFromUserId(),
75
-            'shared_key' => $this->getSharedKey(),
76
-            'permissions' => $this->getPermissions(),
77
-            'created' => $this->getCreated(),
78
-        ];
79
-    }
58
+	/**
59
+	 * Specify data which should be serialized to JSON
60
+	 * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
61
+	 * @return mixed data which can be serialized by <b>json_encode</b>,
62
+	 * which is a value of any type other than a resource.
63
+	 * @since 5.4.0
64
+	 */
65
+	function jsonSerialize()
66
+	{
67
+		return [
68
+			'req_id' => $this->getId(),
69
+			'item_id' => $this->getItemId(),
70
+			'item_guid' => $this->getItemGuid(),
71
+			'target_user_id' => $this->getTargetUserId(),
72
+			'target_vault_id' => $this->getTargetVaultId(),
73
+			'target_vault_guid' => $this->getTargetVaultGuid(),
74
+			'from_user_id' => $this->getFromUserId(),
75
+			'shared_key' => $this->getSharedKey(),
76
+			'permissions' => $this->getPermissions(),
77
+			'created' => $this->getCreated(),
78
+		];
79
+	}
80 80
 
81
-    function asACLJson(){
82
-        return [
83
-            'item_id' => $this->getItemId(),
84
-            'item_guid' => $this->getItemGuid(),
85
-            'user_id' => $this->getTargetUserId(),
86
-            'created' => $this->getCreated(),
87
-            'permissions' => $this->getPermissions(),
88
-            'vault_id' => $this->getTargetVaultId(),
89
-            'vault_guid' => $this->getTargetVaultGuid(),
90
-            'shared_key' => $this->getSharedKey(),
91
-            'pending'   => true,
92
-        ];
93
-    }
81
+	function asACLJson(){
82
+		return [
83
+			'item_id' => $this->getItemId(),
84
+			'item_guid' => $this->getItemGuid(),
85
+			'user_id' => $this->getTargetUserId(),
86
+			'created' => $this->getCreated(),
87
+			'permissions' => $this->getPermissions(),
88
+			'vault_id' => $this->getTargetVaultId(),
89
+			'vault_guid' => $this->getTargetVaultGuid(),
90
+			'shared_key' => $this->getSharedKey(),
91
+			'pending'   => true,
92
+		];
93
+	}
94 94
 }
95 95
\ No newline at end of file
Please login to merge, or discard this patch.