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.

VCRAwareInitializer   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A initializeContext() 0 6 2
1
<?php
2
3
namespace BVCR\Behat\Context\Initializer;
4
5
use Behat\Behat\Context\Context;
6
use Behat\Behat\Context\Initializer\ContextInitializer;
7
use BVCR\Behat\Context\VCRAwareContext;
8
use VCR\Videorecorder;
9
10
class VCRAwareInitializer implements ContextInitializer
11
{
12
    private $videorecorder;
13
14 2
    public function __construct(Videorecorder $videorecorder)
15
    {
16 2
        $this->videorecorder = $videorecorder;
17 2
    }
18
19 2
    public function initializeContext(Context $context)
20
    {
21 2
        if ($context instanceof VCRAwareContext) {
22 1
            $context->setVideorecorder($this->videorecorder);
23 1
        }
24 2
    }
25
}
26