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
195:45 queued 160:43
created

AbstractLoader   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A setContainer() 0 4 1
A load() 0 3 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;
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