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
Pull Request — 1.x (#218)
by Eric
12:08
created

PHPCRExecutor::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 1
Metric Value
c 2
b 1
f 1
dl 6
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 3
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Hautelook\AliceBundle package.
5
 *
6
 * (c) Baldur Rensch <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Hautelook\AliceBundle\Doctrine\DataFixtures\Executor;
13
14
use Doctrine\Common\DataFixtures\Executor\PHPCRExecutor as DoctrinePHPCRExecutor;
15
use Doctrine\Common\DataFixtures\Purger\PHPCRPurger;
16
use Doctrine\ODM\PHPCR\DocumentManager;
17
use Hautelook\AliceBundle\Alice\DataFixtures\LoaderInterface;
18
19
/**
20
 * Class responsible for executing data fixtures.
21
 *
22
 * @author Théo FIDRY <[email protected]>
23
 */
24 View Code Duplication
class PHPCRExecutor extends DoctrinePHPCRExecutor implements ExecutorInterface
25
{
26
    use ExecutorTrait;
27
28
    /**
29
     * @var LoaderInterface
30
     */
31
    private $loader;
32
33
    /**
34
     * Construct new fixtures loader instance.
35
     *
36
     * @param DocumentManager $manager DocumentManager instance used for persistence.
37
     * @param LoaderInterface $loader
38
     * @param PHPCRPurger     $purger
39
     */
40 12
    public function __construct(DocumentManager $manager, LoaderInterface $loader, PHPCRPurger $purger = null)
41
    {
42 12
        parent::__construct($manager, $purger);
43
44 12
        $this->loader = $loader;
45 12
    }
46
47
    /** {@inheritdoc} */
48 12
    public function execute(array $fixtures, $append = false)
49
    {
50 12
        $this->executeExecutor($this, $this->getObjectManager(), $this->loader, $fixtures, $append);
51 12
    }
52
}
53