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 ( 74ce6a...af33f1 )
by Joni
05:36
created

CoordinateParameter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A coordinateOctets() 0 3 1
1
<?php
2
3
namespace JWX\JWK\Parameter;
4
5
use JWX\JWT\Parameter\Feature\Base64URLValue;
6
use JWX\Util\Base64;
7
8
9
/**
10
 * Base class for EC coordinate parameters.
11
 */
12
abstract class CoordinateParameter extends RegisteredJWKParameter
13
{
14
	use Base64URLValue;
15
	
16
	/**
17
	 * Get coordinate in octet string representation.
18
	 *
19
	 * @return string
20
	 */
21 11
	public function coordinateOctets() {
22 11
		return Base64::urlDecode($this->_value);
23
	}
24
}
25