Passed
Push — master ( 5bd0b7...fe2b7e )
by Jean-Christophe
10:05 queued 48s
created

JsonApiRestServer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Ubiquity\controllers\rest\api\jsonapi;
4
5
use Ubiquity\controllers\rest\RestServer;
6
7
/**
8
 * Rest server for JsonAPI 1.0.
9
 * Ubiquity\controllers\rest\api\jsonapi$JsonApiRestServer
10
 * This class is part of Ubiquity
11
 *
12
 * @author jcheron <[email protected]>
13
 * @version 1.0.1
14
 *
15
 */
16
class JsonApiRestServer extends RestServer {
17
18 6
	public function __construct(&$config) {
19 6
		parent::__construct ( $config );
20 6
		$this->headers ['Content-Type'] = 'application/vnd.api+json; charset=utf8';
21 6
	}
22
}
23
24