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 class 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...
17
{
18
/**
19
* URI.
20
*
21
* @var string $_uri
22
*/
23
protected $_uri;
24
25
/**
26
* Constructor
27
*
28
* @param string $uri
29
*/
30
45
public function __construct($uri) {
31
45
$this->_tag = self::TAG_URI;
32
45
$this->_uri = $uri;
33
45
}
34
35
/**
36
*
37
* @param UnspecifiedType $el
38
* @return self
39
*/
40
25
public static function fromChosenASN1(UnspecifiedType $el) {
41
25
return new self($el->asIA5String()->string());
42
}
43
44
13
public function string() {
45
13
return $this->_uri;
46
}
47
48
/**
49
* Get URI.
50
*
51
* @return string
52
*/
53
5
public function uri() {
54
5
return $this->_uri;
55
}
56
57
30
protected function _choiceASN1() {
58
30
return new ImplicitlyTaggedType($this->_tag, new IA5String($this->_uri));
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.