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.
The class Pyrech\ComposerChangelog...or\AbstractUrlGenerator has been deprecated with message: since v1.4, will be removed in v2.0. Use GitBasedUrlGenerator class instead
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be
removed from the class and what other constant to use instead.
Loading history...
17
{
18
/** @var string */
19
private $host;
20
21
/**
22
* @param string $host
23
*/
24
20
public function __construct($host)
25
{
26
20
$this->host = $host;
27
20
}
28
29
/**
30
* {@inheritdoc}
31
*/
32
16
protected function getDomain()
33
{
34
16
return $this->host;
35
}
36
37
/**
38
* {@inheritdoc}
39
*/
40
10
public function generateCompareUrl($sourceUrlFrom, Version $versionFrom, $sourceUrlTo, Version $versionTo)
41
{
42
// Check if both urls come from the supported domain
43
// It avoids problems when one url is from another domain or is local
44
10
if (!$this->supports($sourceUrlFrom) || !$this->supports($sourceUrlTo)) {
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.
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.