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.
Completed
Push — master ( 5e3b1d...3195ef )
by Joni
03:54
created

X509CertificateSHA1ThumbprintParameter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace JWX\JWK\Parameter;
4
5
use JWX\Parameter\Feature\Base64URLValue;
6
7
8
/**
9
 * Implements 'X.509 Certificate SHA-1 Thumbprint' parameter.
10
 *
11
 * @link https://tools.ietf.org/html/rfc7517#section-4.8
12
 */
13
class X509CertificateSHA1ThumbprintParameter extends JWKParameter
14
{
15
	use Base64URLValue;
16
	
17
	/**
18
	 * Constructor
19
	 *
20
	 * @param string $thumbprint Base64url encoded SHA-1 hash
21
	 */
22 1
	public function __construct($thumbprint) {
23 1
		$this->_validateEncoding($thumbprint);
24 1
		parent::__construct(self::PARAM_X509_CERTIFICATE_SHA1_THUMBPRINT, 
25 1
			(string) $thumbprint);
26 1
	}
27
}
28