Skip to content

Commit f2ec4d9

Browse files
committed
updated Deploykeys: renamed variable to for better comprehensibility
1 parent 95db75b commit f2ec4d9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/Bitbucket/API/Repositories/Deploykeys.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ public function all($account, $repo)
3939
/**
4040
* Get the key's content
4141
*
42-
* TIP: You can use `$this->all()` to obtain assigned `$pk`.
42+
* TIP: You can use `$this->all()` to obtain assigned `$keyId`.
4343
*
4444
* @access public
4545
* @param string $account The team or individual account owning the repository.
4646
* @param string $repo The repository identifier.
47-
* @param string $pk The key identifier assigned by Bitbucket.
47+
* @param string $keyId The key identifier assigned by Bitbucket.
4848
* @return MessageInterface
4949
*/
50-
public function get($account, $repo, $pk)
50+
public function get($account, $repo, $keyId)
5151
{
5252
return $this->requestGet(
53-
sprintf('repositories/%s/%s/deploy-keys/%s', $account, $repo, $pk)
53+
sprintf('repositories/%s/%s/deploy-keys/%s', $account, $repo, $keyId)
5454
);
5555
}
5656

@@ -91,33 +91,33 @@ public function create($account, $repo, $key, $label = null)
9191
* @access public
9292
* @param string $account The team or individual account owning the repository.
9393
* @param string $repo The repository identifier.
94-
* @param string $pk The key identifier assigned by Bitbucket.
94+
* @param string $keyId The key identifier assigned by Bitbucket.
9595
* @param array $options The rest of available options
9696
* @return MessageInterface
9797
*/
98-
public function update($account, $repo, $pk, $options = array())
98+
public function update($account, $repo, $keyId, $options = array())
9999
{
100100
return $this->requestPut(
101-
sprintf('repositories/%s/%s/deploy-keys/%s', $account, $repo, $pk),
101+
sprintf('repositories/%s/%s/deploy-keys/%s', $account, $repo, $keyId),
102102
$options
103103
);
104104
}
105105

106106
/**
107107
* Delete a key
108108
*
109-
* TIP: You can use `$this->all()` to obtain assigned `$pk`.
109+
* TIP: You can use `$this->all()` to obtain assigned `$keyId`.
110110
*
111111
* @access public
112112
* @param string $account The team or individual account owning the repository.
113113
* @param string $repo The repository identifier.
114-
* @param string $pk The key identifier assigned by Bitbucket.
114+
* @param string $keyId The key identifier assigned by Bitbucket.
115115
* @return MessageInterface
116116
*/
117-
public function delete($account, $repo, $pk)
117+
public function delete($account, $repo, $keyId)
118118
{
119119
return $this->requestDelete(
120-
sprintf('repositories/%s/%s/deploy-keys/%s', $account, $repo, $pk)
120+
sprintf('repositories/%s/%s/deploy-keys/%s', $account, $repo, $keyId)
121121
);
122122
}
123123
}

0 commit comments

Comments
 (0)