Completed
Push — master ( 7e776b...c46311 )
by Sander
05:23 queued 02:54
created
lib/Service/ShareService.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,6 +49,7 @@  discard block
 block discarded – undo
49 49
 	 * @param $target_item_guid string      The shared item GUID
50 50
 	 * @param $request_array    array
51 51
 	 * @param $permissions      integer     Must be created with a bitmask from options on the ShareRequest class
52
+	 * @param string $credential_owner
52 53
 	 * @return array                        Array of sharing requests
53 54
 	 */
54 55
 	public function createBulkRequests($target_item_id, $target_item_guid, $request_array, $permissions, $credential_owner) {
@@ -253,7 +254,6 @@  discard block
 block discarded – undo
253 254
 	/**
254 255
 	 * Delete ACL
255 256
 	 *
256
-	 * @param  ShareRequest $request
257 257
 	 * @return \OCA\Passman\Db\ShareRequest[]
258 258
 	 */
259 259
 	public function deleteShareACL(SharingACL $ACL) {
@@ -277,7 +277,6 @@  discard block
 block discarded – undo
277 277
 	/**
278 278
 	 * Get pending share requests by guid and uid
279 279
 	 *
280
-	 * @param  ShareRequest $request
281 280
 	 * @return \OCA\Passman\Db\ShareRequest[]
282 281
 	 */
283 282
 	public function getPendingShareRequestsForCredential($item_guid, $user_id) {
Please login to merge, or discard this patch.
lib/Db/CredentialMapper.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@  discard block
 block discarded – undo
25 25
 	/**
26 26
 	 * @throws \OCP\AppFramework\Db\DoesNotExistException if not found
27 27
 	 * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException if more than one result
28
+	 * @param integer $vault_id
28 29
 	 */
29 30
 	public function getCredentialsByVaultId($vault_id, $user_id) {
30 31
 		$sql = 'SELECT * FROM `*PREFIX*passman_credentials` ' .
@@ -32,12 +33,18 @@  discard block
 block discarded – undo
32 33
 		return $this->findEntities($sql, [$user_id, $vault_id]);
33 34
 	}
34 35
 
36
+	/**
37
+	 * @param integer $vault_id
38
+	 */
35 39
 	public function getRandomCredentialByVaultId($vault_id, $user_id) {
36 40
 		$sql = 'SELECT * FROM `*PREFIX*passman_credentials` ' .
37 41
 			'WHERE `user_id` = ? and vault_id = ? AND shared_key is NULL ORDER BY RAND() LIMIT 1';
38 42
 		return $this->findEntities($sql, [$user_id, $vault_id]);
39 43
 	}
40 44
 
45
+	/**
46
+	 * @param integer $timestamp
47
+	 */
41 48
 	public function getExpiredCredentials($timestamp){
42 49
 		$sql = 'SELECT * FROM `*PREFIX*passman_credentials` ' .
43 50
 			'WHERE `expire_time` > 0 AND `expire_time` < ?';
@@ -61,6 +68,9 @@  discard block
 block discarded – undo
61 68
 		return $this->findEntity($sql,$params);
62 69
 	}
63 70
 
71
+	/**
72
+	 * @param integer $credential_id
73
+	 */
64 74
 	public function getCredentialLabelById($credential_id){
65 75
 		$sql = 'SELECT id, label FROM `*PREFIX*passman_credentials` ' .
66 76
 			'WHERE `id` = ? ';
Please login to merge, or discard this patch.