Skip to content

Commit ccf51be

Browse files
author
Luc Morin
committed
fix(ci): Fix some small typo with the wiki ID and the doc comment.
1 parent d72b10c commit ccf51be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/Gitlab/Model/Wiki.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,36 +33,36 @@ class Wiki extends AbstractModel
3333
*/
3434
public static function fromArray(Client $client, Project $project, array $data)
3535
{
36-
$wiki = new static($project, $data['id'], $client);
36+
$wiki = new static($project, $data['slug'], $client);
3737

3838
return $wiki->hydrate($data);
3939
}
4040

4141
/**
4242
* @param Project $project
43-
* @param int $id
43+
* @param string $slug
4444
* @param Client $client
4545
*/
46-
public function __construct(Project $project, $id = null, Client $client = null)
46+
public function __construct(Project $project, $slug = null, Client $client = null)
4747
{
4848
$this->setClient($client);
4949
$this->setData('project', $project);
50-
$this->setData('id', $id);
50+
$this->setData('slug', $slug);
5151
}
5252

5353
/**
5454
* @return Wiki
5555
*/
5656
public function show()
5757
{
58-
$data = $this->client->wiki()->show($this->project->id, $this->id);
58+
$data = $this->client->wiki()->show($this->project->id, $this->slug);
5959

6060
return static::fromArray($this->getClient(), $this->project, $data);
6161
}
6262

6363
/**
6464
* @param array $params
65-
* @return Schedule
65+
* @return Wiki
6666
*/
6767
public function update(array $params)
6868
{

0 commit comments

Comments
 (0)