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/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.

lib/X509/GeneralName/GeneralNames.php 1 location

@@ 158-168 (lines=11) @@
155
	 *
156
	 * @return Sequence
157
	 */
158
	public function toASN1() {
159
		if (!count($this->_names)) {
160
			throw new \LogicException(
161
				"GeneralNames must have at least one GeneralName.");
162
		}
163
		$elements = array_map(
164
			function (GeneralName $name) {
165
				return $name->toASN1();
166
			}, $this->_names);
167
		return new Sequence(...$elements);
168
	}
169
	
170
	/**
171
	 *