Skip to content

Commit a67c09e

Browse files
committed
Fix: credential argument naming
1 parent 864aa38 commit a67c09e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Api/Packages.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,44 +36,44 @@ public function show($packageName)
3636
return $this->get(sprintf('/packages/%s/', $packageName));
3737
}
3838

39-
public function createVcsPackage($url, $credentials = null)
39+
public function createVcsPackage($url, $credentialId = null)
4040
{
41-
return $this->post('/packages/', ['repoType' => 'vcs', 'repoUrl' => $url, 'credentials' => $credentials]);
41+
return $this->post('/packages/', ['repoType' => 'vcs', 'repoUrl' => $url, 'credentials' => $credentialId]);
4242
}
4343

44-
public function createCustomPackage($customJson, $credentials = null)
44+
public function createCustomPackage($customJson, $credentialId = null)
4545
{
4646
if (is_array($customJson) || is_object($customJson)) {
4747
$customJson = json_encode($customJson);
4848
}
4949

50-
return $this->post('/packages/', ['repoType' => 'package', 'repoConfig' => $customJson, 'credentials' => $credentials]);
50+
return $this->post('/packages/', ['repoType' => 'package', 'repoConfig' => $customJson, 'credentials' => $credentialId]);
5151
}
5252

5353
/**
5454
* @deprecated Use editVcsPackage instead
5555
*/
56-
public function updateVcsPackage($packageName, $url, $credentials = null)
56+
public function updateVcsPackage($packageName, $url, $credentialId = null)
5757
{
58-
return $this->editVcsPackage($packageName, $url, $credentials);
58+
return $this->editVcsPackage($packageName, $url, $credentialId);
5959
}
6060

61-
public function editVcsPackage($packageName, $url, $credentials = null)
61+
public function editVcsPackage($packageName, $url, $credentialId = null)
6262
{
63-
return $this->put(sprintf('/packages/%s/', $packageName), ['repoType' => 'vcs', 'repoUrl' => $url, 'credentials' => $credentials]);
63+
return $this->put(sprintf('/packages/%s/', $packageName), ['repoType' => 'vcs', 'repoUrl' => $url, 'credentials' => $credentialId]);
6464
}
6565

6666
/**
6767
* @deprecated Use editCustomPackage instead
6868
*/
69-
public function updateCustomPackage($packageName, $customJson, $credentials = null)
69+
public function updateCustomPackage($packageName, $customJson, $credentialId = null)
7070
{
71-
return $this->editVcsPackage($packageName, $customJson, $credentials);
71+
return $this->editVcsPackage($packageName, $customJson, $credentialId);
7272
}
7373

74-
public function editCustomPackage($packageName, $customJson, $credentials = null)
74+
public function editCustomPackage($packageName, $customJson, $credentialId = null)
7575
{
76-
return $this->put(sprintf('/packages/%s/', $packageName), ['repoType' => 'package', 'repoConfig' => $customJson, 'credentials' => $credentials]);
76+
return $this->put(sprintf('/packages/%s/', $packageName), ['repoType' => 'package', 'repoConfig' => $customJson, 'credentials' => $credentialId]);
7777
}
7878

7979
public function remove($packageName)

0 commit comments

Comments
 (0)