GitHub Access Token became invalid

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.

Code Duplication    Length = 10-11 lines in 4 locations

lib/X509/GeneralName/GeneralNames.php 1 location

@@ 141-151 (lines=11) @@
138
	 *
139
	 * @return Sequence
140
	 */
141
	public function toASN1() {
142
		if (!count($this->_names)) {
143
			throw new \LogicException(
144
				"GeneralNames must have at least one GeneralName.");
145
		}
146
		$elements = array_map(
147
			function (GeneralName $name) {
148
				return $name->toASN1();
149
			}, $this->_names);
150
		return new Sequence(...$elements);
151
	}
152
	
153
	/**
154
	 *

lib/X509/Certificate/Extension/CRLDistributionPointsExtension.php 1 location

@@ 51-60 (lines=10) @@
48
		return new static($critical, ...$dps);
49
	}
50
	
51
	protected function _valueASN1() {
52
		if (!count($this->_distributionPoints)) {
53
			throw new \LogicException("No distribution points.");
54
		}
55
		$elements = array_map(
56
			function (DistributionPoint $dp) {
57
				return $dp->toASN1();
58
			}, $this->_distributionPoints);
59
		return new Sequence(...$elements);
60
	}
61
	
62
	/**
63
	 * Get distribution points.

lib/X509/Certificate/Extension/NameConstraints/GeneralSubtrees.php 1 location

@@ 65-74 (lines=10) @@
62
	 *
63
	 * @return Sequence
64
	 */
65
	public function toASN1() {
66
		if (!count($this->_subtrees)) {
67
			throw new \LogicException("No subtrees.");
68
		}
69
		$elements = array_map(
70
			function (GeneralSubtree $gs) {
71
				return $gs->toASN1();
72
			}, $this->_subtrees);
73
		return new Sequence(...$elements);
74
	}
75
	
76
	/**
77
	 *

lib/X509/Certificate/Extension/PolicyMappingsExtension.php 1 location

@@ 49-58 (lines=10) @@
46
		return new self($critical, ...$mappings);
47
	}
48
	
49
	protected function _valueASN1() {
50
		if (!count($this->_mappings)) {
51
			throw new \LogicException("No mappings.");
52
		}
53
		$elements = array_map(
54
			function (PolicyMapping $mapping) {
55
				return $mapping->toASN1();
56
			}, $this->_mappings);
57
		return new Sequence(...$elements);
58
	}
59
	
60
	/**
61
	 * Get all mappings.