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-10 lines in 2 locations

lib/JWX/JWE/KeyAlgorithm/KeyAlgorithmFactory.php 1 location

@@ 76-85 (lines=10) @@
73
	 * @throws \UnexpectedValueException If a key cannot be found
74
	 * @return KeyManagementAlgorithm
75
	 */
76
	public function algoByKeys(JWKSet $set) {
77
		if (!$this->_header->hasKeyID()) {
78
			throw new \UnexpectedValueException("No key ID paremeter.");
79
		}
80
		$id = $this->_header->keyID()->value();
81
		if (!$set->hasKeyID($id)) {
82
			throw new \UnexpectedValueException("No key for ID '$id'.");
83
		}
84
		return $this->algoByKey($set->keyByID($id));
85
	}
86
	
87
	/**
88
	 * Get the algorithm implementation class name by an algorithm name.

lib/JWX/JWS/Algorithm/SignatureAlgorithmFactory.php 1 location

@@ 73-82 (lines=10) @@
70
	 * @throws \UnexpectedValueException If a key cannot be found
71
	 * @return SignatureAlgorithm
72
	 */
73
	public function algoByKeys(JWKSet $set) {
74
		if (!$this->_header->hasKeyID()) {
75
			throw new \UnexpectedValueException("No key ID paremeter.");
76
		}
77
		$id = $this->_header->keyID()->value();
78
		if (!$set->hasKeyID($id)) {
79
			throw new \UnexpectedValueException("No key for ID '$id'.");
80
		}
81
		return $this->algoByKey($set->keyByID($id));
82
	}
83
	
84
	/**
85
	 * Get the algorithm implementation class name by an algorithm name.