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.

MustacheTransformer   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A __construct() 0 4 1
A render() 0 4 1
1
<?php
2
3
namespace PhpTransformers\Mustache;
4
5
use PhpTransformers\PhpTransformer\Transformer;
6
use Mustache_Engine;
7
8
class MustacheTransformer extends Transformer
9
{
10
    protected $mustache;
11
12 3
    public function getName()
13
    {
14 3
        return 'mustache';
15
    }
16
17 9
    public function __construct(array $options = array())
18
    {
19 9
        $this->mustache = new Mustache_Engine($options);
20 9
    }
21 6
    public function render($template, array $locals = array())
22
    {
23 6
        return $this->mustache->render($template, $locals);
24
    }
25
}
26