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 ( 78b9a3...0417b0 )
by Bruno
01:22
created

PlaceholdersAwareInitializer::initializeContext()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 1
1
<?php
2
3
namespace Ciandt\Behat\PlaceholdersExtension\Initializer;
4
5
use Behat\Behat\Context\Context;
6
use Behat\Behat\Context\Initializer\ContextInitializer;
7
use Ciandt\Behat\PlaceholdersExtension\Config\PlaceholdersRepository;
8
9
class PlaceholdersAwareInitializer implements ContextInitializer
10
{
11
    private $repository;
12
13
    /**
14
     * Initializes initializer with placeholders repository.
15
     * @param PlaceholdersRepository $repository
16
     */
17
    public function __construct(PlaceholdersRepository $repository)
18
    {
19
        $this->repository = $repository;
20
    }
21
22
    /**
23
     * Injects the placeholders repository on context.
24
     *
25
     * @param Context $context
26
     */
27
    public function initializeContext(Context $context)
28
    {
29
        if ($context instanceof PlaceholdersAwareInterface) {
30
            $context->setPlaceholdersRepository($this->repository);
31
        }
32
    }
33
}
34