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

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 5
ccs 5
cts 5
cp 1
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 4
nc 1
nop 1
crap 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-256 Thumbprint' parameter.
10
 *
11
 * @link https://tools.ietf.org/html/rfc7517#section-4.9
12
 */
13
class X509CertificateSHA256ThumbprintParameter extends JWKParameter
14
{
15
	use Base64URLValue;
16
	
17
	/**
18
	 * Constructor
19
	 *
20
	 * @param string $thumbprint Base64url encoded SHA-256 hash
21
	 */
22 1
	public function __construct($thumbprint) {
23 1
		$this->_validateEncoding($thumbprint);
24 1
		parent::__construct(self::PARAM_X509_CERTIFICATE_SHA256_THUMBPRINT, 
25 1
			(string) $thumbprint);
26 1
	}
27
}
28