Skip to content

Commit b4b9f00

Browse files
Fixed typos
1 parent 871ac82 commit b4b9f00

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/Api/Workspaces/Hooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ public function remove(string $hook, array $params = [])
104104
*/
105105
protected function buildHooksPath(string ...$parts)
106106
{
107-
return static::buildPath('workspaces', $this->username, 'hooks', ...$parts);
107+
return static::buildPath('workspaces', $this->workspace, 'hooks', ...$parts);
108108
}
109109
}

src/Api/Workspaces/Members.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ public function show(string $member, array $params = [])
6060
*/
6161
protected function buildMembersPath(string ...$parts)
6262
{
63-
return static::buildPath('workspaces', $this->username, 'members', ...$parts);
63+
return static::buildPath('workspaces', $this->workspace, 'members', ...$parts);
6464
}
6565
}

src/Api/Workspaces/Permissions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public function list(array $params = [])
4545
*/
4646
protected function buildPermissionsPath(string ...$parts)
4747
{
48-
return static::buildPath('workspaces', $this->username, 'permissions', ...$parts);
48+
return static::buildPath('workspaces', $this->workspace, 'permissions', ...$parts);
4949
}
5050
}

src/Api/Workspaces/PipelinesConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PipelinesConfig extends AbstractWorkspacesApi
2727
*/
2828
public function variables()
2929
{
30-
return new Variables($this->getHttpClient(), $this->username);
30+
return new Variables($this->getHttpClient(), $this->workspace);
3131
}
3232

3333
/**
@@ -41,6 +41,6 @@ public function variables()
4141
*/
4242
protected function buildPipelinesConfigPath(string ...$parts)
4343
{
44-
return static::buildPath('workspaces', $this->username, 'pipelines_config', ...$parts);
44+
return static::buildPath('workspaces', $this->workspace, 'pipelines_config', ...$parts);
4545
}
4646
}

src/Api/Workspaces/PipelinesConfig/Variables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ public function remove(string $variable, array $params = [])
104104
*/
105105
protected function buildVariablesPath(string ...$parts)
106106
{
107-
return static::buildPath('workspaces', $this->username, 'pipelines_config', 'variables', ...$parts);
107+
return static::buildPath('workspaces', $this->workspace, 'pipelines_config', 'variables', ...$parts);
108108
}
109109
}

src/Api/Workspaces/Projects.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ public function remove(string $project, array $params = [])
104104
*/
105105
protected function buildProjectsPath(string ...$parts)
106106
{
107-
return static::buildPath('workspaces', $this->username, 'projects', ...$parts);
107+
return static::buildPath('workspaces', $this->workspace, 'projects', ...$parts);
108108
}
109109
}

0 commit comments

Comments
 (0)