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 (#264)
by Théo
226:11 queued 191:14
created

AbstractLoader::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
cc 1
eloc 1
nc 1
nop 1
crap 2
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;
13
14
use Doctrine\Common\Persistence\ObjectManager;
15
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
16
use Symfony\Component\DependencyInjection\ContainerInterface;
17
18
/**
19
 * Helper for declaring doctrine data loaders.
20
 *
21
 * @author Baldur Rensch <[email protected]>
22
 * @author Théo FIDRY <[email protected]>
23
 * @author Sullivan Senechal <[email protected]>
24
 */
25
abstract class AbstractLoader implements ContainerAwareInterface, LoaderInterface
26
{
27
    /**
28
     * @var ContainerInterface
29
     */
30
    protected $container;
31
32
    public function __construct()
33
    {
34
        @trigger_error(
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
35
            'Doctrine loaders support is deprecated since 1.4.0 and will be removed in 2.0.',
36
            E_USER_DEPRECATED
37 108
        );
38
    }
39 108
40 108
41
    /**
42
     * {@inheritdoc}
43
     *
44
     * Use Symfony\Component\DependencyInjection\ContainerAwareTrait instead when dropping SF 2.3 and PHP 5.3 support.
45
     */
46
    public function setContainer(ContainerInterface $container = null)
47
    {
48
        $this->container = $container;
49 6
    }
50
51 6
    /**
52
     * Loads the fixtures files.
53
     *
54
     * @param ObjectManager $objectManager
55
     *
56
     * @return \object[] Persisted objects
57
     */
58
    public function load(ObjectManager $objectManager)
59
    {
60
    }
61
}
62