It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
52
string $repository,
53
string $commitMessage,
54
string $url,
55
string $sha,
56
string $branch,
57
ReadableStreamInterface $stream
58
) {
59
3
$this->repository = $repository;
60
3
$this->commitMessage = $commitMessage;
61
3
$this->url = $url;
62
3
$this->sha = $sha;
63
3
$this->branch = $branch;
64
3
$this->stream = $stream;
65
3
}
66
67
/**
68
* @return string
69
*/
70
public function getRepository(): string
71
{
72
return $this->repository;
73
}
74
75
/**
76
* @return string
77
*/
78
3
public function getCommitMessage(): string
79
{
80
3
return $this->commitMessage;
81
}
82
83
/**
84
* @return string
85
*/
86
3
public function getUrl(): string
87
{
88
3
return $this->url;
89
}
90
91
/**
92
* @return string
93
*/
94
3
public function getSha(): string
95
{
96
3
return $this->sha;
97
}
98
99
/**
100
* @return string
101
*/
102
3
public function getBranch(): string
103
{
104
3
return $this->branch;
105
}
106
107
/**
108
* @return ReadableStreamInterface
109
*/
110
3
public function getStream(): ReadableStreamInterface
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.